[FFmpeg-devel] [PATCH 1/1] libswscale: force a minimum size of the slide for bayer sources

Anton Khirnov anton at khirnov.net
Wed Sep 28 18:09:35 EEST 2022


Quoting Chema Gonzalez (2022-09-26 18:11:22)
> diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
> index 8838cc8b53..9af2e7ecc3 100644
> --- a/libswscale/swscale_unscaled.c
> +++ b/libswscale/swscale_unscaled.c
> @@ -2095,6 +2095,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
>          c->convert_unscaled = rgbToPlanarRgbWrapper;
>  
>      if (isBayer(srcFormat)) {
> +        c->dst_slice_align = 2;

IMO it's better to put this next to the line that sets dst_slice_align
for non-bayer cases, makes it clearer what the final value is.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list