diff mpegvideo.c @ 952:f348d302a51e libavcodec

pre motion estimation cleanup/bugfix
author michaelni
date Thu, 02 Jan 2003 12:48:09 +0000
parents ad264a7d4f94
children 13aec7e50c52
line wrap: on
line diff
--- a/mpegvideo.c	Thu Jan 02 01:29:35 2003 +0000
+++ b/mpegvideo.c	Thu Jan 02 12:48:09 2003 +0000
@@ -2789,9 +2789,10 @@
 
     /* Estimate motion for every MB */
     if(s->pict_type != I_TYPE){
-
         if(s->pict_type != B_TYPE){
             if((s->avctx->pre_me && s->last_non_b_pict_type==I_TYPE) || s->avctx->pre_me==2){
+                s->me.pre_pass=1;
+
                 for(mb_y=s->mb_height-1; mb_y >=0 ; mb_y--) {
                     for(mb_x=s->mb_width-1; mb_x >=0 ; mb_x--) {
                         s->mb_x = mb_x;
@@ -2799,6 +2800,7 @@
                         ff_pre_estimate_p_frame_motion(s, mb_x, mb_y);
                     }
                 }
+                s->me.pre_pass=0;
             }
         }