Commit 07f608d1 authored by Laurent Aimar's avatar Laurent Aimar

Fixed segfault with corrupted AVI ODML index.

parent 88b84dbe
...@@ -2255,7 +2255,8 @@ static void AVI_IndexLoad_indx( demux_t *p_demux ) ...@@ -2255,7 +2255,8 @@ static void AVI_IndexLoad_indx( demux_t *p_demux )
{ {
break; break;
} }
__Parse_indx( p_demux, i_stream, &ck_sub.indx ); if( ck_sub.indx.i_indextype == AVI_INDEX_OF_CHUNKS )
__Parse_indx( p_demux, i_stream, &ck_sub.indx );
AVI_ChunkFree( p_demux->s, &ck_sub ); AVI_ChunkFree( p_demux->s, &ck_sub );
} }
} }
......
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