[FFmpeg-cvslog] r23540 - trunk/libavformat/matroskadec.c
reimar
subversion
Tue Jun 8 21:31:08 CEST 2010
Author: reimar
Date: Tue Jun 8 21:31:08 2010
New Revision: 23540
Log:
Do not attempt to seek to index for streamed files and if the user explicitly
requested us not to read the index.
Modified:
trunk/libavformat/matroskadec.c
Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c Tue Jun 8 21:28:22 2010 (r23539)
+++ trunk/libavformat/matroskadec.c Tue Jun 8 21:31:08 2010 (r23540)
@@ -1064,6 +1064,11 @@ static void matroska_execute_seekhead(Ma
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;
More information about the ffmpeg-cvslog
mailing list