[vlc-devel] commit: Fixed segfault with corrupted AVI ODML index. (Laurent Aimar )
git version control
git at videolan.org
Wed Feb 24 00:14:14 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Feb 23 22:36:52 2010 +0100| [07f608d11eade6b1bbf5b7a41176e6fb90f1d7e9] | committer: Laurent Aimar
Fixed segfault with corrupted AVI ODML index.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=07f608d11eade6b1bbf5b7a41176e6fb90f1d7e9
---
modules/demux/avi/avi.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index edc38fa..c1c6a7a 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -2255,7 +2255,8 @@ static void AVI_IndexLoad_indx( demux_t *p_demux )
{
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 );
}
}
More information about the vlc-devel
mailing list