X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmotion_est.c;h=a0a59653213c85d56e3376e2c4f26cff701729fb;hb=088dfd3ff15eba342863c74be53f7ca614957966;hp=901fafdf260cf6d304664faba89cc5e4d7d8fb99;hpb=d3d4d98764ea18b3f192ea92b13ee075263b4387;p=ffmpeg diff --git a/libavcodec/motion_est.c b/libavcodec/motion_est.c index 901fafdf260..a0a59653213 100644 --- a/libavcodec/motion_est.c +++ b/libavcodec/motion_est.c @@ -36,9 +36,6 @@ #include "mpegutils.h" #include "mpegvideo.h" -#undef NDEBUG -#include - #define P_LEFT P[1] #define P_TOP P[2] #define P_TOPRIGHT P[3] @@ -321,6 +318,9 @@ int ff_init_me(MpegEncContext *s){ c->avctx= s->avctx; + if(s->codec_id == AV_CODEC_ID_H261) + c->avctx->me_sub_cmp = c->avctx->me_cmp; + 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"); }