Commit 34500c14 authored by Laurent Aimar's avatar Laurent Aimar

Fixed segfault with corrupted mkv files with compressed data.

parent 6b4ec806
...@@ -551,6 +551,8 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simp ...@@ -551,6 +551,8 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simp
if( tk->i_compression_type == MATROSKA_COMPRESSION_ZLIB ) if( tk->i_compression_type == MATROSKA_COMPRESSION_ZLIB )
{ {
p_block = block_zlib_decompress( VLC_OBJECT(p_demux), p_block ); p_block = block_zlib_decompress( VLC_OBJECT(p_demux), p_block );
if( p_block == NULL )
break;
} }
else else
#endif #endif
......
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