diff options
author | Niklas Haas <git@haasn.dev> | 2024-04-24 12:46:01 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2024-05-03 14:23:23 +0200 |
commit | 95568c4e316e8f5f3252596b1f01ce1de22216b6 (patch) | |
tree | 742fa4ea12673a7fc0c154da055c2dd757c8e8ec /libavfilter | |
parent | 5b5e692da636688311e792e9847713a1b339c517 (diff) | |
download | ffmpeg-95568c4e316e8f5f3252596b1f01ce1de22216b6.tar.gz |
avfilter/scale2ref: deprecate in favor of scale=rw:rh
And remove it from the documentation.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_scale.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index f174651333..bc53571c1c 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -368,6 +368,9 @@ static av_cold int init(AVFilterContext *ctx) int64_t threads; int ret; + if (ctx->filter == &ff_vf_scale2ref) + av_log(ctx, AV_LOG_WARNING, "scale2ref is deprecated, use scale=rw:rh instead\n"); + if (scale->size_str && (scale->w_expr || scale->h_expr)) { av_log(ctx, AV_LOG_ERROR, "Size and width/height expressions cannot be set at the same time.\n"); |