mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
tag_tree_decode: check node being non null
Fixes CID717843 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a6cac64f69
commit
0de0ae5a20
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user