# HG changeset patch # User bcoudurier # Date 1212783287 0 # Node ID 9e994fbfe7c3c9950f289ec46e00f43d2c6e1761 # Parent 32bb3a8d8762095544b49d207cf29411b91fc8d5 cosmetics, rename first to header, more explicit name diff -r 32bb3a8d8762 -r 9e994fbfe7c3 ffmenc.c --- 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 */