Fix spatial_decomposition_type validity check.

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

Originally committed as revision 18389 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Michael Niedermayer 16 years ago
parent f0812be883
commit a794356602
  1. 2
      libavcodec/snow.c

@ -3620,7 +3620,7 @@ static int decode_header(SnowContext *s){
} }
s->spatial_decomposition_type+= get_symbol(&s->c, s->header_state, 1); 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); av_log(s->avctx, AV_LOG_ERROR, "spatial_decomposition_type %d not supported", s->spatial_decomposition_type);
return -1; return -1;
} }

Loading…
Cancel
Save