diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-22 08:53:44 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-22 08:53:44 +0000 |
commit | fabb990ec219d79d356c84cf227c728f9fe68e9e (patch) | |
tree | ed8a14cbb0c7b3122678a2ab799b938a3cf6f8f7 /libavformat/ffmenc.c | |
parent | 148c8d80180cfcc9115c6fae87401f50ecc4b987 (diff) | |
download | ffmpeg-fabb990ec219d79d356c84cf227c728f9fe68e9e.tar.gz |
cosmetics, pts->dts
Originally committed as revision 13881 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ffmenc.c')
-rw-r--r-- | libavformat/ffmenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/ffmenc.c b/libavformat/ffmenc.c index 630df4cd47..7e197a57ae 100644 --- a/libavformat/ffmenc.c +++ b/libavformat/ffmenc.c @@ -37,7 +37,7 @@ static void flush_packet(AVFormatContext *s) /* put header */ put_be16(pb, PACKET_ID); put_be16(pb, fill_size); - put_be64(pb, ffm->pts); + put_be64(pb, ffm->dts); h = ffm->frame_offset; if (ffm->first_packet) h |= 0x8000; @@ -54,14 +54,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 header) + int64_t dts, int header) { FFMContext *ffm = s->priv_data; int len; if (header && ffm->frame_offset == 0) { ffm->frame_offset = ffm->packet_ptr - ffm->packet + FFM_HEADER_SIZE; - ffm->pts = pts; + ffm->dts = dts; } /* write as many packets as needed */ @@ -180,7 +180,7 @@ static int ffm_write_header(AVFormatContext *s) ffm->packet_end = ffm->packet + ffm->packet_size - FFM_HEADER_SIZE; assert(ffm->packet_end >= ffm->packet); ffm->frame_offset = 0; - ffm->pts = 0; + ffm->dts = 0; ffm->first_packet = 1; return 0; |