diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-22 00:26:25 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-22 00:26:25 +0000 |
commit | 54e5cf132d63fb076efa8ec7a7067b1fddddf67d (patch) | |
tree | 3e668922e82a37a03ccbefd59cc6b5a26f1db6cf /libavformat/ffmenc.c | |
parent | 60a04f7fc9cf491522c3e213fa039bf6d3163232 (diff) | |
download | ffmpeg-54e5cf132d63fb076efa8ec7a7067b1fddddf67d.tar.gz |
do not reset ffm pts, this avoids setting last pts to 0 and screwing up seeking
Originally committed as revision 13856 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ffmenc.c')
-rw-r--r-- | libavformat/ffmenc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/ffmenc.c b/libavformat/ffmenc.c index 11be2ac1c0..3b7c354841 100644 --- a/libavformat/ffmenc.c +++ b/libavformat/ffmenc.c @@ -47,7 +47,6 @@ static void flush_packet(AVFormatContext *s) /* prepare next packet */ ffm->frame_offset = 0; /* no key frame */ - ffm->pts = 0; /* no pts */ ffm->packet_ptr = ffm->packet; ffm->first_packet = 0; } @@ -60,10 +59,10 @@ static void ffm_write_data(AVFormatContext *s, FFMContext *ffm = s->priv_data; int len; - if (header && ffm->frame_offset == 0) + if (header && ffm->frame_offset == 0) { ffm->frame_offset = ffm->packet_ptr - ffm->packet + FFM_HEADER_SIZE; - if (header && ffm->pts == 0) ffm->pts = pts; + } /* write as many packets as needed */ while (size > 0) { |