diff mpegvideo.c @ 1962:1d5abf80fa41 libavcodec

minor motion estimation cleanup 4mv motion vector passthrough
author michael
date Sat, 24 Apr 2004 03:36:37 +0000
parents 57ffe72703e0
children b5753525f9a8
line wrap: on
line diff
--- a/mpegvideo.c	Sat Apr 24 03:02:40 2004 +0000
+++ b/mpegvideo.c	Sat Apr 24 03:36:37 2004 +0000
@@ -1172,8 +1172,6 @@
     
     ff_set_cmp(&s->dsp, s->dsp.ildct_cmp, s->avctx->ildct_cmp);
     
-    ff_init_me(s);
-
 #ifdef CONFIG_ENCODERS
 #ifdef CONFIG_RISKY
     if (s->out_format == FMT_H263)
@@ -4681,7 +4679,9 @@
     for(i=1; i<s->avctx->thread_count; i++){
         ff_update_duplicate_context(s->thread_context[i], s);
     }
-    
+
+    ff_init_me(s);
+
     /* Estimate motion for every MB */
     if(s->pict_type != I_TYPE){
         if(s->pict_type != B_TYPE && s->avctx->me_threshold==0){