asfdec: always reset packet state after seeking

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Hendrik Leppkes 2015-07-12 12:34:13 +02:00 committed by Luca Barbato
parent f1bdc23437
commit 796268654c
1 changed files with 2 additions and 4 deletions

View File

@ -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;
}