fix first timestamp when decoding mpeg-ps

Originally committed as revision 3274 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-06-30 17:34:15 +00:00
parent 641aa661f6
commit 0ff7199f59
2 changed files with 9 additions and 2 deletions

View File

@ -1327,6 +1327,13 @@ 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) */

View File

@ -9,7 +9,7 @@ ffmpeg regression test
360251 ./data/b-libav.rm
e0a9ed22a34e0277ec77c84e8b64afd9 *./data/b-libav.mpg
387072 ./data/b-libav.mpg
./data/b-libav.mpg CRC=723a4225
./data/b-libav.mpg CRC=c0b64225
57a8dfc7926802bb337a9d8918de94a8 *./data/b-libav.swf
41816 ./data/b-libav.swf
./data/b-libav.swf CRC=2b273fea