diff h264.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 d092ec99cb59
children e1b4f03037d5
line wrap: on
line diff
--- a/h264.c	Tue Feb 16 23:43:08 2010 +0000
+++ b/h264.c	Wed Feb 17 02:14:02 2010 +0000
@@ -2257,6 +2257,8 @@
                 ++s->mb_y;
                 if(FIELD_OR_MBAFF_PICTURE) {
                     ++s->mb_y;
+                    if(FRAME_MBAFF && s->mb_y < s->mb_height)
+                        predict_field_decoding_flag(h);
                 }
             }
 
@@ -2295,6 +2297,8 @@
                 ++s->mb_y;
                 if(FIELD_OR_MBAFF_PICTURE) {
                     ++s->mb_y;
+                    if(FRAME_MBAFF && s->mb_y < s->mb_height)
+                        predict_field_decoding_flag(h);
                 }
                 if(s->mb_y >= s->mb_height){
                     tprintf(s->avctx, "slice end %d %d\n", get_bits_count(&s->gb), s->gb.size_in_bits);