avfilter/vf_scale: Do not skip scale if range mismatches
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 30 Aug 2015 21:46:11 +0000 (23:46 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 30 Aug 2015 23:33:05 +0000 (01:33 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_scale.c

index 9698bfb..be061e2 100644 (file)
@@ -350,6 +350,7 @@ static int config_props(AVFilterLink *outlink)
     scale->isws[0] = scale->isws[1] = scale->sws = NULL;
     if (inlink0->w == outlink->w &&
         inlink0->h == outlink->h &&
+        scale->in_range == scale->out_range &&
         inlink0->format == outlink->format)
         ;
     else {