[FFmpeg-devel] [PATCH 1/2] avfilter: mark scale2ref as supporting dynamic sizes

Michael Niedermayer michael at niedermayer.cc
Sun Mar 17 01:26:28 EET 2024


On Wed, Mar 13, 2024 at 01:24:24PM +0100, Niklas Haas wrote:
> From: Niklas Haas <git at haasn.dev>
> 
> Analogous to the "scale" filter, which this is practically identical
> with.
> ---
>  libavfilter/avfilter.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
> index 831871de90b..dcad4d55292 100644
> --- a/libavfilter/avfilter.c
> +++ b/libavfilter/avfilter.c
> @@ -1027,7 +1027,8 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
>              strcmp(link->dst->filter->name, "format") &&
>              strcmp(link->dst->filter->name, "idet") &&
>              strcmp(link->dst->filter->name, "null") &&
> -            strcmp(link->dst->filter->name, "scale")) {
> +            strcmp(link->dst->filter->name, "scale") &&
> +            strcmp(link->dst->filter->name, "scale2ref")) {
>              av_assert1(frame->format        == link->format);
>              av_assert1(frame->width         == link->w);
>              av_assert1(frame->height        == link->h);

LGTM

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240317/f8e5e815/attachment.sig>


More information about the ffmpeg-devel mailing list