Skip to content

Commit

Permalink
libhdr10plus関連の修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Nov 3, 2024
1 parent 0e21cea commit a29eb7e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions NVEncCore/rgy_hdr10plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
#endif

RGYHDR10Plus::RGYHDR10Plus() :
m_inputJson(),
m_hdr10plusJson(std::unique_ptr<Hdr10PlusRsJsonOpaque, funcHdr10PlusRsJsonOpaqueDelete>(nullptr, nullptr)) {
m_hdr10plusJson(std::unique_ptr<Hdr10PlusRsJsonOpaque, funcHdr10PlusRsJsonOpaqueDelete>(nullptr, nullptr)),
m_inputJson() {
}

RGYHDR10Plus::~RGYHDR10Plus() {
Expand All @@ -64,12 +64,16 @@ RGY_ERR RGYHDR10Plus::init(const tstring &inputJson) {
}
return RGY_ERR_NONE;
#else
reutnr RGY_ERR_UNSUPPORTED;
return RGY_ERR_UNSUPPORTED;
#endif
}

tstring RGYHDR10Plus::getError() {
#if ENABLE_LIBHDR10PLUS
return (m_hdr10plusJson) ? char_to_tstring(hdr10plus_rs_json_get_error(m_hdr10plusJson.get())) : tstring();
#else
return tstring();
#endif
}

const std::vector<uint8_t> RGYHDR10Plus::getData(int iframe) {
Expand Down

0 comments on commit a29eb7e

Please sign in to comment.