diff --git a/NVEncCore/rgy_output.cpp b/NVEncCore/rgy_output.cpp index 4158292e..924e9d94 100644 --- a/NVEncCore/rgy_output.cpp +++ b/NVEncCore/rgy_output.cpp @@ -817,7 +817,7 @@ RGY_ERR RGYOutputRaw::WriteNextOneFrame(RGYBitstream *pBitstream) { std::vector> metadataList; if (m_hdrBitstream.size() > 0) { std::vector data(m_hdrBitstream.data(), m_hdrBitstream.data() + m_hdrBitstream.size()); - metadataList.push_back(std::make_unique(data, true, false)); + metadataList.push_back(std::make_unique(data, (m_VideoOutputInfo.codec == RGY_CODEC_AV1) ? false : true, false)); } if (m_hdr10plusMetadataCopy) { auto [err_hdr10plus, metadata_hdr10plus] = getMetadata(RGY_FRAME_DATA_HDR10PLUS, bs_framedata, nullptr); diff --git a/NVEncCore/rgy_output_avcodec.cpp b/NVEncCore/rgy_output_avcodec.cpp index b53abd47..94a5f84f 100644 --- a/NVEncCore/rgy_output_avcodec.cpp +++ b/NVEncCore/rgy_output_avcodec.cpp @@ -2804,7 +2804,7 @@ RGY_ERR RGYOutputAvcodec::WriteNextFrameInternalOneFrame(RGYBitstream *bitstream std::vector> metadataList; if (m_Mux.video.hdrBitstream.size() > 0) { std::vector data(m_Mux.video.hdrBitstream.data(), m_Mux.video.hdrBitstream.data() + m_Mux.video.hdrBitstream.size()); - metadataList.push_back(std::make_unique(data, true, false)); + metadataList.push_back(std::make_unique(data, (m_VideoOutputInfo.codec == RGY_CODEC_AV1) ? false : true, false)); } if (m_Mux.video.hdr10plusMetadataCopy) { auto [err_hdr10plus, metadata_hdr10plus] = getMetadata(RGY_FRAME_DATA_HDR10PLUS, bs_framedata, nullptr);