mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 10:22:10 +00:00
check block_max_depth (fixes crash)
Originally committed as revision 4718 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
91aa4e3300
commit
4393e6392c
@ -3185,6 +3185,11 @@ static int decode_header(SnowContext *s){
|
||||
s->mv_scale= get_symbol(&s->c, s->header_state, 0);
|
||||
s->qbias= get_symbol(&s->c, s->header_state, 1);
|
||||
s->block_max_depth= get_symbol(&s->c, s->header_state, 0);
|
||||
if(s->block_max_depth > 1){
|
||||
av_log(s->avctx, AV_LOG_ERROR, "block_max_depth= %d is too large", s->block_max_depth);
|
||||
s->block_max_depth= 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user