mirror of https://git.ffmpeg.org/ffmpeg.git
fix first timestamp when decoding mpeg-ps
Originally committed as revision 3274 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
641aa661f6
commit
0ff7199f59
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue