avfilter/vf_hysteresis: ignore SAR from all inputs
authorPaul B Mahol <onemda@gmail.com>
Sun, 12 Nov 2017 10:35:32 +0000 (11:35 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sun, 12 Nov 2017 10:36:59 +0000 (11:36 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/vf_hysteresis.c

index a788e1b..edca40f 100644 (file)
@@ -301,20 +301,13 @@ static int config_output(AVFilterLink *outlink)
         av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
         return AVERROR(EINVAL);
     }
-    if (base->w                       != alt->w ||
-        base->h                       != alt->h ||
-        base->sample_aspect_ratio.num != alt->sample_aspect_ratio.num ||
-        base->sample_aspect_ratio.den != alt->sample_aspect_ratio.den) {
+    if (base->w != alt->w || base->h != alt->h) {
         av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
-               "(size %dx%d, SAR %d:%d) do not match the corresponding "
-               "second input link %s parameters (%dx%d, SAR %d:%d)\n",
+               "(size %dx%d) do not match the corresponding "
+               "second input link %s parameters (size %dx%d)\n",
                ctx->input_pads[0].name, base->w, base->h,
-               base->sample_aspect_ratio.num,
-               base->sample_aspect_ratio.den,
                ctx->input_pads[1].name,
-               alt->w, alt->h,
-               alt->sample_aspect_ratio.num,
-               alt->sample_aspect_ratio.den);
+               alt->w, alt->h);
         return AVERROR(EINVAL);
     }