[FFmpeg-cvslog] r18389 - trunk/libavcodec/snow.c

michael subversion
Thu Apr 9 17:33:02 CEST 2009


Author: michael
Date: Thu Apr  9 17:33:02 2009
New Revision: 18389

Log:
Fix spatial_decomposition_type validity check.
Fixes infinite loop (did no investigate why exactly it got stuck).

Modified:
   trunk/libavcodec/snow.c

Modified: trunk/libavcodec/snow.c
==============================================================================
--- trunk/libavcodec/snow.c	Thu Apr  9 17:17:03 2009	(r18388)
+++ trunk/libavcodec/snow.c	Thu Apr  9 17:33:02 2009	(r18389)
@@ -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;
     }



More information about the ffmpeg-cvslog mailing list