tag_tree_decode: check node being non null

Fixes CID717843
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-14 22:00:04 +02:00
parent a6cac64f69
commit 0de0ae5a20

View File

@ -167,6 +167,9 @@ static int tag_tree_decode(J2kDecoderContext *s, J2kTgtNode *node, int threshold
J2kTgtNode *stack[30];
int sp = -1, curval = 0;
if(!node)
return AVERROR(EINVAL);
while(node && !node->vis){
stack[++sp] = node;
node = node->parent;