mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Do not attempt to seek to index for streamed files and if the user explicitly
requested us not to read the index. Originally committed as revision 23540 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
c31f00ed63
commit
120a083fb7
@ -1064,6 +1064,11 @@ static void matroska_execute_seekhead(MatroskaDemuxContext *matroska)
|
||||
MatroskaLevel level;
|
||||
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++) {
|
||||
int64_t offset = seekhead[i].pos + matroska->segment_start;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user