PR #20849 opened by Niklas Haas (haasn) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20849 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20849.patch
The MSB YUV formats were added, but the gray formats were not. Seems to have been an oversight. Fixes: a5be0ecbfdab24632a10c8a6714844530f76d368 >From c9710dae3c6151a22f0fff60f0a9b4514f6a3b97 Mon Sep 17 00:00:00 2001 From: Niklas Haas <[email protected]> Date: Thu, 6 Nov 2025 15:56:24 +0100 Subject: [PATCH] swscale/format: add missing fmt_shift for gray12/12 msb formats The MSB YUV formats were added, but the gray formats were not. Seems to have been an oversight. Fixes: a5be0ecbfdab24632a10c8a6714844530f76d368 --- libswscale/format.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libswscale/format.c b/libswscale/format.c index e4b9b264e5..c4c4142fc6 100644 --- a/libswscale/format.c +++ b/libswscale/format.c @@ -757,6 +757,8 @@ static int fmt_shift(enum AVPixelFormat fmt) case AV_PIX_FMT_YUV444P10MSBLE: case AV_PIX_FMT_GBRP10MSBBE: case AV_PIX_FMT_GBRP10MSBLE: + case AV_PIX_FMT_GRAY10MSBBE: + case AV_PIX_FMT_GRAY10MSBLE: return 6; case AV_PIX_FMT_P012BE: case AV_PIX_FMT_P012LE: @@ -776,6 +778,8 @@ static int fmt_shift(enum AVPixelFormat fmt) case AV_PIX_FMT_YUV444P12MSBLE: case AV_PIX_FMT_GBRP12MSBBE: case AV_PIX_FMT_GBRP12MSBLE: + case AV_PIX_FMT_GRAY12MSBBE: + case AV_PIX_FMT_GRAY12MSBLE: return 4; } -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
