mirror of https://git.ffmpeg.org/ffmpeg.git
cosmetics, rename first to header, more explicit name
Originally committed as revision 13676 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
969f949300
commit
a1011180d5
|
@ -58,14 +58,14 @@ static void flush_packet(AVFormatContext *s)
|
||||||
/* 'first' is true if first data of a frame */
|
/* 'first' is true if first data of a frame */
|
||||||
static void ffm_write_data(AVFormatContext *s,
|
static void ffm_write_data(AVFormatContext *s,
|
||||||
const uint8_t *buf, int size,
|
const uint8_t *buf, int size,
|
||||||
int64_t pts, int first)
|
int64_t pts, int header)
|
||||||
{
|
{
|
||||||
FFMContext *ffm = s->priv_data;
|
FFMContext *ffm = s->priv_data;
|
||||||
int len;
|
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;
|
ffm->frame_offset = ffm->packet_ptr - ffm->packet + FFM_HEADER_SIZE;
|
||||||
if (first && ffm->pts == 0)
|
if (header && ffm->pts == 0)
|
||||||
ffm->pts = pts;
|
ffm->pts = pts;
|
||||||
|
|
||||||
/* write as many packets as needed */
|
/* write as many packets as needed */
|
||||||
|
|
Loading…
Reference in New Issue