diff options
author | Mohammad Izadi <izadi-at-google.com@ffmpeg.org> | 2021-06-17 22:20:44 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2021-06-24 10:29:17 -0700 |
commit | aca923b3653a7db5fd9fa3dca029936feb152aa2 (patch) | |
tree | 618cd27004a7c7510eb52fbd1378cd1d7c4c77c4 /libavcodec/decode.c | |
parent | 947122f111afdfe0c16de7177d760e0cf41170eb (diff) | |
download | ffmpeg-aca923b3653a7db5fd9fa3dca029936feb152aa2.tar.gz |
avcodec: Pass HDR10+ metadata to packet side data in VP9 encoder
HDR10+ metadata is stored in the bit stream for HEVC. The story is
different for VP9 and cannot store the metadata in the bit stream.
HDR10+ should be passed to packet side data an stored in the container
(mkv) for VP9.
This CL is taking HDR10+ from AVFrame side data in libvpxenc and is
passing it to the AVPacket side data.
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Zern <jzern@google.com>
Diffstat (limited to 'libavcodec/decode.c')
-rw-r--r-- | libavcodec/decode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c index e5e4256871..568710cf4a 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -1497,6 +1497,7 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame) { AV_PKT_DATA_A53_CC, AV_FRAME_DATA_A53_CC }, { AV_PKT_DATA_ICC_PROFILE, AV_FRAME_DATA_ICC_PROFILE }, { AV_PKT_DATA_S12M_TIMECODE, AV_FRAME_DATA_S12M_TIMECODE }, + { AV_PKT_DATA_DYNAMIC_HDR10_PLUS, AV_FRAME_DATA_DYNAMIC_HDR_PLUS }, }; if (!(avctx->codec->caps_internal & FF_CODEC_CAP_SETS_FRAME_PROPS)) { |