Browse Source

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
tags/v0.5
Aurelien Jacobs 17 years ago
parent
commit
244ee48a82
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/matroskadec.c

+ 1
- 0
libavformat/matroskadec.c View File

@@ -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);
matroska->skip_to_keyframe = !(flags & AVSEEK_FLAG_ANY);
matroska->skip_to_stream = st;
matroska->done = 0;
av_update_cur_dts(s, st, st->index_entries[index].timestamp);
return 0;
}


Loading…
Cancel
Save