mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-21 06:20:09 +01:00
fix first timestamp when decoding mpeg-ps
Originally committed as revision 3274 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -1326,8 +1326,15 @@ static void av_estimate_timings_from_pts(AVFormatContext *ic)
|
|||||||
|
|
||||||
/* flush packet queue */
|
/* flush packet queue */
|
||||||
flush_packet_queue(ic);
|
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
|
/* we read the first packets to get the first PTS (not fully
|
||||||
accurate, but it is enough now) */
|
accurate, but it is enough now) */
|
||||||
url_fseek(&ic->pb, 0, SEEK_SET);
|
url_fseek(&ic->pb, 0, SEEK_SET);
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ ffmpeg regression test
|
|||||||
360251 ./data/b-libav.rm
|
360251 ./data/b-libav.rm
|
||||||
e0a9ed22a34e0277ec77c84e8b64afd9 *./data/b-libav.mpg
|
e0a9ed22a34e0277ec77c84e8b64afd9 *./data/b-libav.mpg
|
||||||
387072 ./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
|
57a8dfc7926802bb337a9d8918de94a8 *./data/b-libav.swf
|
||||||
41816 ./data/b-libav.swf
|
41816 ./data/b-libav.swf
|
||||||
./data/b-libav.swf CRC=2b273fea
|
./data/b-libav.swf CRC=2b273fea
|
||||||
|
|||||||
Reference in New Issue
Block a user