mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-25 22:56:49 +00:00
avfilter/vf_lut2: ignore SAR from all inputs
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
79aa9d8aee
commit
a28e70beab
@ -304,20 +304,13 @@ static int lut2_config_output(AVFilterLink *outlink)
|
|||||||
av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
|
av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
if (srcx->w != srcy->w ||
|
if (srcx->w != srcy->w || srcx->h != srcy->h) {
|
||||||
srcx->h != srcy->h ||
|
|
||||||
srcx->sample_aspect_ratio.num != srcy->sample_aspect_ratio.num ||
|
|
||||||
srcx->sample_aspect_ratio.den != srcy->sample_aspect_ratio.den) {
|
|
||||||
av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
|
av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
|
||||||
"(size %dx%d, SAR %d:%d) do not match the corresponding "
|
"(size %dx%d) do not match the corresponding "
|
||||||
"second input link %s parameters (%dx%d, SAR %d:%d)\n",
|
"second input link %s parameters (size %dx%d)\n",
|
||||||
ctx->input_pads[0].name, srcx->w, srcx->h,
|
ctx->input_pads[0].name, srcx->w, srcx->h,
|
||||||
srcx->sample_aspect_ratio.num,
|
|
||||||
srcx->sample_aspect_ratio.den,
|
|
||||||
ctx->input_pads[1].name,
|
ctx->input_pads[1].name,
|
||||||
srcy->w, srcy->h,
|
srcy->w, srcy->h);
|
||||||
srcy->sample_aspect_ratio.num,
|
|
||||||
srcy->sample_aspect_ratio.den);
|
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user