aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-12 22:52:23 +0200
committerRainer Hochecker <fernetmenta@online.de>2014-03-08 15:37:51 +0100
commita4f997b71e20a732d8a782b2498c3abb544e94d8 (patch)
tree8f7ad273b10de2212a7ad475877e39f52f1126c6 /lib
parent28f60eda8a95d559048e1bcc280a42d92f4bf6db (diff)
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/ffmpeg/libavformat/asfdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ffmpeg/libavformat/asfdec.c b/lib/ffmpeg/libavformat/asfdec.c
index c7e16f5f23..7f141775fe 100644
--- a/lib/ffmpeg/libavformat/asfdec.c
+++ b/lib/ffmpeg/libavformat/asfdec.c
@@ -1401,6 +1401,7 @@ static int64_t asf_read_pts(AVFormatContext *s, int stream_index,
if (avio_seek(s->pb, pos, SEEK_SET) < 0)
return AV_NOPTS_VALUE;
+ ff_read_frame_flush(s);
asf_reset_header(s);
for (;;) {
if (av_read_frame(s, pkt) < 0) {