Originally committed as revision 7328 to svn://svn.ffmpeg.org/ffmpeg/trunk
Michael Niedermayer authored on 2006/12/18 00:41:30... | ... |
@@ -230,9 +230,9 @@ static void zero_hpel(uint8_t *a, const uint8_t *b, int stride, int h){ |
230 | 230 |
|
231 | 231 |
void ff_init_me(MpegEncContext *s){ |
232 | 232 |
MotionEstContext * const c= &s->me; |
233 |
- c->avctx= s->avctx; |
|
234 | 233 |
int cache_size= FFMIN(ME_MAP_SIZE>>ME_MAP_SHIFT, 1<<ME_MAP_SHIFT); |
235 | 234 |
int dia_size= FFMAX(FFABS(s->avctx->dia_size)&255, FFABS(s->avctx->pre_dia_size)&255); |
235 |
+ c->avctx= s->avctx; |
|
236 | 236 |
|
237 | 237 |
if(cache_size < 2*dia_size && !c->stride){ |
238 | 238 |
av_log(s->avctx, AV_LOG_INFO, "ME_MAP size may be a little small for the selected diamond size\n"); |