Commit 244ee48a authored by Aurelien Jacobs's avatar Aurelien Jacobs

matroskadec: unset matroska->done when seeking

just in case someone try to seek back after reaching the end of file

Originally committed as revision 14960 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0f646a22
...@@ -1670,6 +1670,7 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index, ...@@ -1670,6 +1670,7 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index,
url_fseek(s->pb, st->index_entries[index].pos, SEEK_SET); url_fseek(s->pb, st->index_entries[index].pos, SEEK_SET);
matroska->skip_to_keyframe = !(flags & AVSEEK_FLAG_ANY); matroska->skip_to_keyframe = !(flags & AVSEEK_FLAG_ANY);
matroska->skip_to_stream = st; matroska->skip_to_stream = st;
matroska->done = 0;
av_update_cur_dts(s, st, st->index_entries[index].timestamp); av_update_cur_dts(s, st, st->index_entries[index].timestamp);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment