This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 099aa719021a09d2373dec6cadb6b3d4c280095d
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Mon Jun 22 13:08:51 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Tue Jul 28 08:39:15 2026 +0000

    avcodec/av1dec: allow D3D11VA for 12-bit 4:2:0
    
    Offer the D3D11VA hwaccel pixel formats for YUV420P12 (AV1 Profile 2),
    enabling hardware decoding of 12-bit 4:2:0 streams on capable devices.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 libavcodec/av1dec.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index 4be9e54902..4f73fcc1fc 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -615,6 +615,10 @@ static int get_pixel_format(AVCodecContext *avctx)
 #endif
         break;
     case AV_PIX_FMT_YUV420P12:
+#if CONFIG_AV1_D3D11VA_HWACCEL
+        *fmtp++ = AV_PIX_FMT_D3D11VA_VLD;
+        *fmtp++ = AV_PIX_FMT_D3D11;
+#endif
 #if CONFIG_AV1_VULKAN_HWACCEL
         *fmtp++ = AV_PIX_FMT_VULKAN;
 #endif

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

Reply via email to