Browse Source

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

Originally committed as revision 16217 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
c375d87f6f
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      libavcodec/h264.c

+ 2
- 4
libavcodec/h264.c View File

@@ -5403,10 +5403,8 @@ static int decode_mb_cabac(H264Context *h) {
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 ){


Loading…
Cancel
Save