forked from FFmpeg/FFmpeg
avcodec/smacker: use the correct field instead of a hardcoded value for the index check in smacker_decode_tree()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d2d96f9e47
commit
59a08d1939
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ static int smacker_decode_tree(GetBitContext *gb, HuffContext *hc, uint32_t pref
|
|||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
if(!get_bits1(gb)){ //Leaf
|
||||
if(hc->current >= 256){
|
||||
if(hc->current >= hc->length){
|
||||
av_log(NULL, AV_LOG_ERROR, "Tree size exceeded!\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue