diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-06-30 17:34:15 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-06-30 17:34:15 +0000 |
commit | 0ff7199f595eaf79837a008af793c7964e7bff90 (patch) | |
tree | 0a86cbedbd2cd2dc8ccd70a3540453cb33d4da73 /libavformat | |
parent | 641aa661f669893dd039eab253f5ec5455f5c730 (diff) | |
download | ffmpeg-0ff7199f595eaf79837a008af793c7964e7bff90.tar.gz |
fix first timestamp when decoding mpeg-ps
Originally committed as revision 3274 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 1420f496fc..aa02235bb8 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1326,8 +1326,15 @@ static void av_estimate_timings_from_pts(AVFormatContext *ic) /* flush packet queue */ flush_packet_queue(ic); - + for(i=0;i<ic->nb_streams;i++) { + st = ic->streams[i]; + if (st->parser) { + av_parser_close(st->parser); + st->parser= NULL; + } + } + /* we read the first packets to get the first PTS (not fully accurate, but it is enough now) */ url_fseek(&ic->pb, 0, SEEK_SET); |