[FFmpeg-cvslog] r16217 - trunk/libavcodec/h264.c

michael subversion
Thu Dec 18 16:32:08 CET 2008


Author: michael
Date: Thu Dec 18 16:32:07 2008
New Revision: 16217

Log:
Remove if() surrounding decode_cabac_mb_type() that can never be true.


Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Thu Dec 18 16:32:07 2008
@@ -5403,10 +5403,8 @@ static int decode_mb_cabac(H264Context *
     h->prev_mb_skipped = 0;
 
     compute_mb_neighbors(h);
-    if( ( mb_type = decode_cabac_mb_type( h ) ) < 0 ) {
-        av_log( h->s.avctx, AV_LOG_ERROR, "decode_cabac_mb_type failed\n" );
-        return -1;
-    }
+    mb_type = decode_cabac_mb_type( h );
+    assert(mb_type >= 0);
 
     if( h->slice_type_nos == FF_B_TYPE ) {
         if( mb_type < 23 ){




More information about the ffmpeg-cvslog mailing list