Commit 9c7037f1 authored by reimar's avatar reimar

Do not attempt to seek to index for streamed files and if the user explicitly

requested us not to read the index.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23540 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d8fc22bb
...@@ -1064,6 +1064,11 @@ static void matroska_execute_seekhead(MatroskaDemuxContext *matroska) ...@@ -1064,6 +1064,11 @@ static void matroska_execute_seekhead(MatroskaDemuxContext *matroska)
MatroskaLevel level; MatroskaLevel level;
int i; int i;
// we should not do any seeking in the streaming case
if (url_is_streamed(matroska->ctx->pb) ||
(matroska->ctx->flags & AVFMT_FLAG_IGNIDX))
return;
for (i=0; i<seekhead_list->nb_elem; i++) { for (i=0; i<seekhead_list->nb_elem; i++) {
int64_t offset = seekhead[i].pos + matroska->segment_start; int64_t offset = seekhead[i].pos + matroska->segment_start;
......
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