diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 3e33d08ab8..33e3d884ed 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1793,7 +1793,7 @@ static int matroska_parse_cluster(MatroskaDemuxContext *matroska) blocks_list = &cluster.blocks; blocks = blocks_list->elem; for (i=0; inb_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,