diff options
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mkv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpdemux/demux_mkv.c b/libmpdemux/demux_mkv.c index 00dfe3ae08..982f04062d 100644 --- a/libmpdemux/demux_mkv.c +++ b/libmpdemux/demux_mkv.c @@ -326,6 +326,10 @@ static int demux_mkv_decode(mkv_track_t *track, uint8_t *src, #if CONFIG_ZLIB if (track->encodings[i].comp_algo == 0) { /* zlib encoded track */ + + if (*size == 0) + continue; + z_stream zstream; zstream.zalloc = (alloc_func) 0; |