mb_field_decoding_flag was not initialized
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 3 Aug 2008 13:00:39 +0000 (13:00 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 3 Aug 2008 13:00:39 +0000 (13:00 +0000)
Fixes at least:
MR7_BT_B.h264
Sharp_MP_PAFF_1r2.jvt
Sharp_MP_PAFF_2.jvt

Originally committed as revision 14518 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index 24ba9d9..6e8dd61 100644 (file)
@@ -3812,6 +3812,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
             h->mb_aff_frame = h->sps.mb_aff;
         }
     }
+    h->mb_field_decoding_flag= s->picture_structure != PICT_FRAME;
 
     if(h0->current_slice == 0){
         while(h->frame_num !=  h->prev_frame_num &&