[FFmpeg-devel] [PATCH] lavf/zf_zscale: remove unused code

Linjie Fu linjie.fu at intel.com
Wed Dec 11 10:52:17 EET 2019


Signed-off-by: Linjie Fu <linjie.fu at intel.com>
---
 libavfilter/vf_zscale.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c
index db2dd17..bd5825f 100644
--- a/libavfilter/vf_zscale.c
+++ b/libavfilter/vf_zscale.c
@@ -287,13 +287,6 @@ static int config_props(AVFilterLink *outlink)
     outlink->w = w;
     outlink->h = h;
 
-    if (inlink->w == outlink->w &&
-        inlink->h == outlink->h &&
-        inlink->format == outlink->format)
-        ;
-    else {
-    }
-
     if (inlink->sample_aspect_ratio.num){
         outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h * inlink->w, outlink->w * inlink->h}, inlink->sample_aspect_ratio);
     } else
-- 
2.7.4



More information about the ffmpeg-devel mailing list