The branch, master has been updated
       via  c9710dae3c6151a22f0fff60f0a9b4514f6a3b97 (commit)
      from  222127418bbdee3247eb9c02bb8cf31991e32241 (commit)


- Log -----------------------------------------------------------------
commit c9710dae3c6151a22f0fff60f0a9b4514f6a3b97
Author:     Niklas Haas <[email protected]>
AuthorDate: Thu Nov 6 15:56:24 2025 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Thu Nov 6 15:56:24 2025 +0100

    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

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;
     }
 

-----------------------------------------------------------------------

Summary of changes:
 libswscale/format.c | 4 ++++
 1 file changed, 4 insertions(+)


hooks/post-receive
-- 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to