Skip to content

Commit

Permalink
7.75の"--dolby-vision-rpuをファイルから読む場合に壊してしまっていたのを修正。"がまだ修正できていなかったのを修正。 (
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Jan 3, 2025
1 parent 9f35193 commit b267bbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions QSVPipeline/rgy_bitstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,13 +577,13 @@ int DOVIRpu::get_next_rpu(std::vector<uint8_t>& bytes, const RGYDOVIProfile dovi
return 1;
}

bytes.resize(next_size);
std::vector<uint8_t> tmpbuf(next_size);
const auto dataptr = m_buffer.data() + m_dataoffset;
memcpy(bytes.data(), dataptr, next_size);
auto output = unnal(bytes.data(), bytes.size());
memcpy(tmpbuf.data(), dataptr, next_size);
bytes = unnal(tmpbuf.data(), tmpbuf.size());
m_dataoffset += next_size;
m_datasize -= next_size;
return convert_dovi_rpu(output, doviProfileDst, prm);
return convert_dovi_rpu(bytes, doviProfileDst, prm);
}

int DOVIRpu::get_next_rpu(std::vector<uint8_t>& bytes, const RGYDOVIProfile doviProfileDst, const RGYDOVIRpuConvertParam *prm, const int64_t id) {
Expand Down

0 comments on commit b267bbd

Please sign in to comment.