Skip to content

Commit

Permalink
VUIを設定すると出力が異常になる場合があったのを修正。( #18 )
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Nov 23, 2020
1 parent da5ee0c commit e34c016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions VCECore/rgy_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ RGY_ERR RGYOutputRaw::WriteNextFrame(RGYBitstream *pBitstream) {
}
memmove(pBitstream->data() + next_nal_new_offset, pBitstream->data() + next_nal_orig_offset, stream_orig_length - next_nal_orig_offset);
memcpy(pBitstream->data() + sps_nal_offset, pkt.data, pkt.size);
pBitstream->setSize(new_data_size);
av_packet_unref(&pkt);
}
}
Expand Down
1 change: 1 addition & 0 deletions VCECore/rgy_output_avcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2345,6 +2345,7 @@ RGY_ERR RGYOutputAvcodec::WriteNextFrameInternal(RGYBitstream *bitstream, int64_
}
memmove(bitstream->data() + next_nal_new_offset, bitstream->data() + next_nal_orig_offset, stream_orig_length - next_nal_orig_offset);
memcpy(bitstream->data() + sps_nal_offset, pkt.data, pkt.size);
bitstream->setSize(new_data_size);
av_packet_unref(&pkt);
}
}
Expand Down

0 comments on commit e34c016

Please sign in to comment.