changeset 8384:9754fef77769 libavcodec

Remove if() surrounding decode_cabac_mb_type() that can never be true.
author michael
date Thu, 18 Dec 2008 15:32:07 +0000
parents 4be7fab48777
children af35581ac2ca
files h264.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Thu Dec 18 15:21:15 2008 +0000
+++ b/h264.c	Thu Dec 18 15:32:07 2008 +0000
@@ -5403,10 +5403,8 @@
     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 ){