Commit d62868a3 authored by aurel's avatar aurel

matroskadec: avoid potential crash after r23169

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23330 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6cfad115
......@@ -1793,7 +1793,7 @@ static int matroska_parse_cluster(MatroskaDemuxContext *matroska)
blocks_list = &cluster.blocks;
blocks = blocks_list->elem;
for (i=0; i<blocks_list->nb_elem; i++)
if (blocks[i].bin.size > 0) {
if (blocks[i].bin.size > 0 && blocks[i].bin.data) {
int is_keyframe = blocks[i].non_simple ? !blocks[i].reference : -1;
res=matroska_parse_block(matroska,
blocks[i].bin.data, blocks[i].bin.size,
......
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