提交 79626865 编写于 作者: H Hendrik Leppkes 提交者: Luca Barbato

asfdec: always reset packet state after seeking

Signed-off-by: NLuca Barbato <lu_zero@gentoo.org>
上级 f1bdc234
...@@ -1558,12 +1558,10 @@ static int asf_read_seek(AVFormatContext *s, int stream_index, ...@@ -1558,12 +1558,10 @@ static int asf_read_seek(AVFormatContext *s, int stream_index,
} else { } else {
if ((ret = ff_seek_frame_binary(s, stream_index, timestamp, flags)) < 0) if ((ret = ff_seek_frame_binary(s, stream_index, timestamp, flags)) < 0)
return ret; return ret;
// asf_read_timestamp is called inside ff_seek_frame_binary and leaves state dirty,
// so reset_packet_state have to be called after it.
reset_packet_state(s);
} }
reset_packet_state(s);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册