changeset 9366:48eb9ec4e318 libavcodec

Fix spatial_decomposition_type validity check. Fixes infinite loop (did no investigate why exactly it got stuck).
author michael
date Thu, 09 Apr 2009 15:33:02 +0000
parents 48813960f5d5
children b32ece43b8a2
files snow.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/snow.c	Thu Apr 09 15:17:03 2009 +0000
+++ b/snow.c	Thu Apr 09 15:33:02 2009 +0000
@@ -3620,7 +3620,7 @@
     }
 
     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;
     }