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

Git pushed a commit to branch master
in repository ffmpeg.

commit 8e4c031cb61acbf704565211cf15b4d4d035e28a
Author:     softworkz <[email protected]>
AuthorDate: Wed Jul 29 04:19:24 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Tue Sep 22 21:30:07 2026 +0000

    avutil/hwcontext_amf: Set BindFlags for derived D3D11 contexts
    
    AMF requires the shader_resource flag for all processing. Even though
    it might not be required for encoding, the final destination of the
    frames is unknown at this point.
    What's known though, is that the flag doesn't have any adverse effect
    on encoding, so it is safe to add it here.
    
    Signed-off-by: softworkz <[email protected]>
---
 libavutil/hwcontext_amf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/hwcontext_amf.c b/libavutil/hwcontext_amf.c
index d67193a3c5..7889546c9d 100644
--- a/libavutil/hwcontext_amf.c
+++ b/libavutil/hwcontext_amf.c
@@ -801,6 +801,7 @@ static int amf_init_from_d3d11_device(AVAMFDeviceContext* 
amf_ctx, AVHWDeviceCon
         return AVERROR(ENODEV);
     }
     av_log(child_device_ctx, AV_LOG_INFO, "AMF via D3D11.\n");
+    hwctx->BindFlags |= D3D11_BIND_SHADER_RESOURCE;
     return 0;
 }
 #endif

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to