diff options
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/ffmdec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c index a959d6b8d4..9e1d57f3d2 100644 --- a/libavformat/ffmdec.c +++ b/libavformat/ffmdec.c @@ -454,6 +454,13 @@ static int ffm_seek(AVFormatContext *s, int stream_index, int64_t wanted_pts, in pos -= FFM_PACKET_SIZE; found: ffm_seek1(s, pos); + + /* reset read state */ + ffm->read_state = READ_HEADER; + ffm->packet_ptr = ffm->packet; + ffm->packet_end = ffm->packet; + ffm->first_packet = 1; + return 0; } |