changeset 4307:649e51394b6f libavcodec

10l
author michael
date Sun, 17 Dec 2006 15:41:30 +0000
parents 331961478469
children 74b476185cd1
files motion_est.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/motion_est.c	Sun Dec 17 15:26:50 2006 +0000
+++ b/motion_est.c	Sun Dec 17 15:41:30 2006 +0000
@@ -230,9 +230,9 @@
 
 void ff_init_me(MpegEncContext *s){
     MotionEstContext * const c= &s->me;
-    c->avctx= s->avctx;
     int cache_size= FFMIN(ME_MAP_SIZE>>ME_MAP_SHIFT, 1<<ME_MAP_SHIFT);
     int dia_size= FFMAX(FFABS(s->avctx->dia_size)&255, FFABS(s->avctx->pre_dia_size)&255);
+    c->avctx= s->avctx;
 
     if(cache_size < 2*dia_size && !c->stride){
         av_log(s->avctx, AV_LOG_INFO, "ME_MAP size may be a little small for the selected diamond size\n");