Mercurial > libavformat.hg
changeset 6058:5d4acf33261d libavformat
matroskadec: avoid potential crash after r23169
author | aurel |
---|---|
date | Tue, 25 May 2010 22:55:12 +0000 |
parents | 8a374abb2929 |
children | 65b0ea69d9af |
files | matroskadec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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,