changeset 3433:9e994fbfe7c3 libavformat

cosmetics, rename first to header, more explicit name
author bcoudurier
date Fri, 06 Jun 2008 20:14:47 +0000
parents 32bb3a8d8762
children 3224f8d495a8
files ffmenc.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ffmenc.c	Fri Jun 06 17:50:32 2008 +0000
+++ b/ffmenc.c	Fri Jun 06 20:14:47 2008 +0000
@@ -58,14 +58,14 @@
 /* 'first' is true if first data of a frame */
 static void ffm_write_data(AVFormatContext *s,
                            const uint8_t *buf, int size,
-                           int64_t pts, int first)
+                           int64_t pts, int header)
 {
     FFMContext *ffm = s->priv_data;
     int len;
 
-    if (first && ffm->frame_offset == 0)
+    if (header && ffm->frame_offset == 0)
         ffm->frame_offset = ffm->packet_ptr - ffm->packet + FFM_HEADER_SIZE;
-    if (first && ffm->pts == 0)
+    if (header && ffm->pts == 0)
         ffm->pts = pts;
 
     /* write as many packets as needed */