diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-12-21 17:49:40 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-12-21 17:49:40 +0000 |
commit | befc8fe08620795633c8eb7784388e94ec700d07 (patch) | |
tree | 427c462a0ab883f0c1542a848cee47b07ada97bc | |
parent | c212fb0cb1900ab92c00de948fb25f00c93639bb (diff) | |
download | ffmpeg-befc8fe08620795633c8eb7784388e94ec700d07.tar.gz |
Remove useless code.
Originally committed as revision 16253 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h264.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 2c065c79de..cbb99443b6 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -5356,9 +5356,7 @@ static int decode_mb_cabac(H264Context *h) { if( FRAME_MBAFF && (s->mb_y&1)==0 ){ s->current_picture.mb_type[mb_xy] = MB_TYPE_SKIP; h->next_mb_skipped = decode_cabac_mb_skip( h, s->mb_x, s->mb_y+1 ); - if(h->next_mb_skipped) - predict_field_decoding_flag(h); - else + if(!h->next_mb_skipped) h->mb_mbaff = h->mb_field_decoding_flag = decode_cabac_field_decoding_flag(h); } @@ -6550,7 +6548,7 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg){ if( ret >= 0 && FRAME_MBAFF ) { //FIXME optimal? or let mb_decode decode 16x32 ? s->mb_y++; - if(ret>=0) ret = decode_mb_cabac(h); + ret = decode_mb_cabac(h); if(ret>=0) hl_decode_mb(h); s->mb_y--; |