aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_hysteresis.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-11-12 11:35:32 +0100
committerPaul B Mahol <onemda@gmail.com>2017-11-12 11:36:59 +0100
commit19d2108a984f7009e74eeddf883e6bad758a98e6 (patch)
treede33bf60e38140d34f7d1c41741e1376234a5f8b /libavfilter/vf_hysteresis.c
parent2afeb3f8ab0041d470d905102d23080c88d67d92 (diff)
downloadffmpeg-19d2108a984f7009e74eeddf883e6bad758a98e6.tar.gz
avfilter/vf_hysteresis: ignore SAR from all inputs
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_hysteresis.c')
-rw-r--r--libavfilter/vf_hysteresis.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/libavfilter/vf_hysteresis.c b/libavfilter/vf_hysteresis.c
index a788e1b9ee..edca40fa21 100644
--- a/libavfilter/vf_hysteresis.c
+++ b/libavfilter/vf_hysteresis.c
@@ -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);
}