ffmpeg | branch: master | Cameron Gutman <aicomman...@gmail.com> | Mon Sep  9 
20:14:15 2024 -0500| [a15d2fdfd96c0ce711e0be3fe6c2f47b5a39b931] | committer: 
Dmitrii Ovchinnikov

avcodec/amfenc: Fix AV1 HDR metadata for delayed surfaces

AMF_VIDEO_ENCODER_AV1_INPUT_HDR_METADATA was set above in the normal
input case but forgotten for the same in the delayed surface codepath.

Signed-off-by: Cameron Gutman <aicomman...@gmail.com>
Signed-off-by: Dmitrii Ovchinnikov <ovchinnikov.dmit...@gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a15d2fdfd96c0ce711e0be3fe6c2f47b5a39b931
---

 libavcodec/amfenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c
index 41eaef9758..a47aea6108 100644
--- a/libavcodec/amfenc.c
+++ b/libavcodec/amfenc.c
@@ -832,6 +832,8 @@ int ff_amf_receive_packet(AVCodecContext *avctx, AVPacket 
*avpkt)
                     AMF_ASSIGN_PROPERTY_INTERFACE(res, ctx->encoder, 
AMF_VIDEO_ENCODER_INPUT_HDR_METADATA, hdrmeta_buffer); break;
                 case AV_CODEC_ID_HEVC:
                     AMF_ASSIGN_PROPERTY_INTERFACE(res, ctx->encoder, 
AMF_VIDEO_ENCODER_HEVC_INPUT_HDR_METADATA, hdrmeta_buffer); break;
+                case AV_CODEC_ID_AV1:
+                    AMF_ASSIGN_PROPERTY_INTERFACE(res, ctx->encoder, 
AMF_VIDEO_ENCODER_AV1_INPUT_HDR_METADATA, hdrmeta_buffer); break;
                 }
                 hdrmeta_buffer->pVtbl->Release(hdrmeta_buffer);
             }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to