]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/motion_est.c
qsv: Load the hw hevc plugin by default on Linux
[ffmpeg] / libavcodec / motion_est.c
index 1c0116c7541023e3e742a9919ff0b2354933200a..c6dd3b86afb2bc311052c8a24a036f9403204d3e 100644 (file)
@@ -310,25 +310,6 @@ int ff_init_me(MpegEncContext *s){
         return -1;
     }
 
-#if FF_API_MOTION_EST
-FF_DISABLE_DEPRECATION_WARNINGS
-    if (s->motion_est == FF_ME_EPZS) {
-        if (s->me_method == ME_ZERO)
-            s->motion_est = FF_ME_ZERO;
-        else if (s->me_method == ME_EPZS)
-            s->motion_est = FF_ME_EPZS;
-        else if (s->me_method == ME_X1)
-            s->motion_est = FF_ME_XONE;
-        else {
-            av_log(s->avctx, AV_LOG_ERROR,
-                   "me_method is only allowed to be set to zero and epzs; "
-                   "for hex,umh,full and others see dia_size\n");
-            return -1;
-        }
-    }
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif
-
     c->avctx= s->avctx;
 
     if(cache_size < 2*dia_size && !c->stride){