Mercurial > libavformat.hg
diff matroskadec.c @ 6058:5d4acf33261d libavformat
matroskadec: avoid potential crash after r23169
author | aurel |
---|---|
date | Tue, 25 May 2010 22:55:12 +0000 |
parents | 7b764d7a2938 |
children | 6f9d084d5888 |
line wrap: on
line diff
--- a/matroskadec.c Tue May 25 15:39:32 2010 +0000 +++ b/matroskadec.c Tue May 25 22:55:12 2010 +0000 @@ -1793,7 +1793,7 @@ 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,