[FFmpeg-cvslog] r13677 - trunk/libavformat/ffmdec.c

bcoudurier subversion
Fri Jun 6 22:36:17 CEST 2008


Author: bcoudurier
Date: Fri Jun  6 22:36:16 2008
New Revision: 13677

Log:
cosmetics, rename first to header, more explicit name

Modified:
   trunk/libavformat/ffmdec.c

Modified: trunk/libavformat/ffmdec.c
==============================================================================
--- trunk/libavformat/ffmdec.c	(original)
+++ trunk/libavformat/ffmdec.c	Fri Jun  6 22:36:16 2008
@@ -79,7 +79,7 @@ static int ffm_is_avail_data(AVFormatCon
 
 /* first is true if we read the frame header */
 static int ffm_read_data(AVFormatContext *s,
-                         uint8_t *buf, int size, int first)
+                         uint8_t *buf, int size, int header)
 {
     FFMContext *ffm = s->priv_data;
     ByteIOContext *pb = s->pb;
@@ -122,7 +122,7 @@ static int ffm_read_data(AVFormatContext
                 if ((frame_offset & 0x7fff) < FFM_HEADER_SIZE)
                     return -1;
                 ffm->packet_ptr = ffm->packet + (frame_offset & 0x7fff) - FFM_HEADER_SIZE;
-                if (!first)
+                if (!header)
                     break;
             } else {
                 ffm->packet_ptr = ffm->packet;
@@ -133,7 +133,7 @@ static int ffm_read_data(AVFormatContext
         buf += len;
         ffm->packet_ptr += len;
         size -= len;
-        first = 0;
+        header = 0;
     }
     return size1 - size;
 }




More information about the ffmpeg-cvslog mailing list