# HG changeset patch # User michael # Date 1229614327 0 # Node ID 9754fef77769c4e73c231d961f693b7f1d039157 # Parent 4be7fab487775a56a54c4e89d9d4f1dda282ba88 Remove if() surrounding decode_cabac_mb_type() that can never be true. diff -r 4be7fab48777 -r 9754fef77769 h264.c --- 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 ){