[MPlayer-dev-eng] [PATCH] do not read AVI index with -forceidx
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Sep 13 18:02:01 CEST 2007
Hello,
seems rather pointless to read the index when it won't be used anyway.
Do you agree with attached patch?
Greetings,
Reimar Döffinger
-------------- next part --------------
Index: libmpdemux/aviheader.c
===================================================================
--- libmpdemux/aviheader.c (revision 24447)
+++ libmpdemux/aviheader.c (working copy)
@@ -211,7 +211,7 @@
uint32_t i;
avisuperindex_chunk *s;
- if(!index_mode) break;
+ if(!index_mode || index_mode >= 2) break;
if(chunksize<=24){
break;
@@ -368,7 +368,7 @@
case ckidAVINEWINDEX:
if(demuxer->movi_end>stream_tell(demuxer->stream))
demuxer->movi_end=stream_tell(demuxer->stream); // fixup movi-end
- if(index_mode && !priv->isodml){
+ if(index_mode && index_mode < 2 && !priv->isodml){
int i;
priv->idx_size=size2>>4;
mp_msg(MSGT_HEADER,MSGL_V,MSGTR_MPDEMUX_AVIHDR_ReadingIndexBlockChunksForFrames,
More information about the MPlayer-dev-eng
mailing list