diff h264.h @ 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 d1a855cb0a0c
children e1b4f03037d5
line wrap: on
line diff
--- a/h264.h	Tue Feb 16 23:43:08 2010 +0000
+++ b/h264.h	Wed Feb 17 02:14:02 2010 +0000
@@ -1453,7 +1453,7 @@
 
 static void predict_field_decoding_flag(H264Context *h){
     MpegEncContext * const s = &h->s;
-    const int mb_xy= h->mb_xy;
+    const int mb_xy= s->mb_x + s->mb_y*s->mb_stride;
     int mb_type = (h->slice_table[mb_xy-1] == h->slice_num)
                 ? s->current_picture.mb_type[mb_xy-1]
                 : (h->slice_table[mb_xy-s->mb_stride] == h->slice_num)