changeset 3434:3224f8d495a8 libavformat

cosmetics, rename first to header, more explicit name
author bcoudurier
date Fri, 06 Jun 2008 20:36:16 +0000
parents 9e994fbfe7c3
children a81155640306
files ffmdec.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ffmdec.c	Fri Jun 06 20:14:47 2008 +0000
+++ b/ffmdec.c	Fri Jun 06 20:36:16 2008 +0000
@@ -79,7 +79,7 @@
 
 /* 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 @@
                 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 @@
         buf += len;
         ffm->packet_ptr += len;
         size -= len;
-        first = 0;
+        header = 0;
     }
     return size1 - size;
 }