diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 8e706fbf09a88cb8a5d9a7b849380dc05f6b26aa..eaa69fdc0d809eb0c8e1808f709a8cda2cbeca46 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; }