diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-07-12 12:34:13 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-07-12 13:24:23 +0200 |
commit | 796268654c7807c9a1cfb322c838383e2b900d60 (patch) | |
tree | 5b304d54596462a0b9d473440ccf384d649ef261 /libavformat | |
parent | f1bdc234370401c032cd85184e93c7c155eb6d62 (diff) | |
download | ffmpeg-796268654c7807c9a1cfb322c838383e2b900d60.tar.gz |
asfdec: always reset packet state after seeking
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/asfdec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 8e706fbf09..eaa69fdc0d 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -1558,12 +1558,10 @@ static int asf_read_seek(AVFormatContext *s, int stream_index, } else { if ((ret = ff_seek_frame_binary(s, stream_index, timestamp, flags)) < 0) 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; } |