summaryrefslogtreecommitdiff
path: root/libavformat/asfdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-12 22:52:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-12 22:52:23 +0200
commit4b101ab02ea762f70903e894a4b002b229526a4a (patch)
tree4a35971f0436fb7e99149e578db97109abbf7488 /libavformat/asfdec.c
parent3500f53c9375d44e200f3785980a59830615f34b (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 'libavformat/asfdec.c')
-rw-r--r--libavformat/asfdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index cffbcc4be0..0d6370dc9a 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -1414,6 +1414,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) {