diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-06 20:14:47 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-06 20:14:47 +0000 |
commit | a1011180d5d0f0b4d0eee44b1f1499c3f75e7ed6 (patch) | |
tree | 34d1a8d0a7b7ba5dedc03d2876549791ea76a56a /libavformat/ffmenc.c | |
parent | 969f949300cda963d6bfb8ec870a58007e9641bd (diff) | |
download | ffmpeg-a1011180d5d0f0b4d0eee44b1f1499c3f75e7ed6.tar.gz |
cosmetics, rename first to header, more explicit name
Originally committed as revision 13676 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ffmenc.c')
-rw-r--r-- | libavformat/ffmenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/ffmenc.c b/libavformat/ffmenc.c index 4e2d0b95b6..e4f7adf540 100644 --- a/libavformat/ffmenc.c +++ b/libavformat/ffmenc.c @@ -58,14 +58,14 @@ static void flush_packet(AVFormatContext *s) /* '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 */ |