aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorCameron Gutman <aicommander@gmail.com>2024-09-09 20:14:15 -0500
committerDmitrii Ovchinnikov <ovchinnikov.dmitrii@gmail.com>2024-09-11 15:45:59 +0200
commita15d2fdfd96c0ce711e0be3fe6c2f47b5a39b931 (patch)
treedda51cee4aaa04c0c498a06a77c688bc527c5e46 /libavcodec
parent4646a74d1e61abfffbde3a590a3b8277c000f0b9 (diff)
downloadffmpeg-a15d2fdfd96c0ce711e0be3fe6c2f47b5a39b931.tar.gz
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 <aicommander@gmail.com> Signed-off-by: Dmitrii Ovchinnikov <ovchinnikov.dmitrii@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/amfenc.c2
1 files changed, 2 insertions, 0 deletions
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);
}