[FFmpeg-devel] [PATCH 1/2] swscale/unscaled: correctly copy semiplanar formats
Anton Khirnov
anton at khirnov.net
Thu Dec 19 16:10:26 EET 2024
Quoting Niklas Haas (2024-12-19 15:07:59)
> From: Niklas Haas <git at haasn.dev>
>
> This fixes multiple bugs with semiplanar formats like NV12. Not only do these
> false positive the grayscale format checks (because dst[2] in NULL), but they
> also copied an incorrect number of pixels.
>
> Fixes conversions such as nv12 -> nv12, gray8 -> nv12, nv20le -> nv20be, etc.
>
> Fixes: ticket #11239
> Signed-off-by: Niklas Haas <git at haasn.dev>
> Sponsored-by: Sovereign Tech Fund
> ---
> libswscale/swscale_unscaled.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
Do we have no tests for this?
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list