mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 09:11:17 +00:00
avformat/asfdec: call ff_read_frame_flush() in asf_read_pts()
flushing just the asf demuxer but not the cores buffers leads to inconsistencies and a "random" packet position which later causes an assertion failure Fixes Ticket2853 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3500f53c93
commit
4b101ab02e
@ -1414,6 +1414,7 @@ static int64_t asf_read_pts(AVFormatContext *s, int stream_index,
|
|||||||
if (avio_seek(s->pb, pos, SEEK_SET) < 0)
|
if (avio_seek(s->pb, pos, SEEK_SET) < 0)
|
||||||
return AV_NOPTS_VALUE;
|
return AV_NOPTS_VALUE;
|
||||||
|
|
||||||
|
ff_read_frame_flush(s);
|
||||||
asf_reset_header(s);
|
asf_reset_header(s);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (av_read_frame(s, pkt) < 0) {
|
if (av_read_frame(s, pkt) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user