Commit 604aa0c3 authored by michael's avatar michael

Fix spatial_decomposition_type validity check.

Fixes infinite loop (did no investigate why exactly it got stuck).


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18389 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0772ce47
......@@ -3620,7 +3620,7 @@ static int decode_header(SnowContext *s){
}
s->spatial_decomposition_type+= get_symbol(&s->c, s->header_state, 1);
if(s->spatial_decomposition_type > 1){
if(s->spatial_decomposition_type > 1U){
av_log(s->avctx, AV_LOG_ERROR, "spatial_decomposition_type %d not supported", s->spatial_decomposition_type);
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment