# HG changeset patch # User michael # Date 1119941141 0 # Node ID 1d1b328d07cef965599a3b04fb10687f35590259 # Parent 4d8010054ba9c57d09d3d8147c80bef6444d456b fixing first_mb_in_slice if frame_mbs_only_flag==0 && mb_aff==0 diff -r 4d8010054ba9 -r 1d1b328d07ce h264.c --- a/h264.c Mon Jun 27 23:13:10 2005 +0000 +++ b/h264.c Tue Jun 28 06:45:41 2005 +0000 @@ -4234,7 +4234,7 @@ s->picture_structure= PICT_TOP_FIELD + get_bits1(&s->gb); //bottom_field_flag } else { s->picture_structure= PICT_FRAME; - first_mb_in_slice <<= 1; + first_mb_in_slice <<= h->sps.mb_aff; h->mb_aff_frame = h->sps.mb_aff; } }