comparison h264_cabac.c @ 11191:5e583a785508 libavcodec

Move check for and call of predict_field_decoding_flag() from the mb code to the row code. This function would only be needed on a MB basis for MBAFF+FMO
author michael
date Wed, 17 Feb 2010 02:14:02 +0000
parents afc60af2d008
children 4e2d74d7bad8
comparison
equal deleted inserted replaced
11190:afc60af2d008 11191:5e583a785508
1194 1194
1195 tprintf(s->avctx, "pic:%d mb:%d/%d\n", h->frame_num, s->mb_x, s->mb_y); 1195 tprintf(s->avctx, "pic:%d mb:%d/%d\n", h->frame_num, s->mb_x, s->mb_y);
1196 if( h->slice_type_nos != FF_I_TYPE ) { 1196 if( h->slice_type_nos != FF_I_TYPE ) {
1197 int skip; 1197 int skip;
1198 /* a skipped mb needs the aff flag from the following mb */ 1198 /* a skipped mb needs the aff flag from the following mb */
1199 if( FRAME_MBAFF && s->mb_x==0 && (s->mb_y&1)==0 )
1200 predict_field_decoding_flag(h);
1201 if( FRAME_MBAFF && (s->mb_y&1)==1 && h->prev_mb_skipped ) 1199 if( FRAME_MBAFF && (s->mb_y&1)==1 && h->prev_mb_skipped )
1202 skip = h->next_mb_skipped; 1200 skip = h->next_mb_skipped;
1203 else 1201 else
1204 skip = decode_cabac_mb_skip( h, s->mb_x, s->mb_y ); 1202 skip = decode_cabac_mb_skip( h, s->mb_x, s->mb_y );
1205 /* read skip flags */ 1203 /* read skip flags */