mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Add two EOS NAL units at the end of each picture to make intra sequence work
This commit is contained in:
parent
b7638172ca
commit
b3f3a9eae6
|
@ -1449,6 +1449,10 @@ static void encoder_state_write_bitstream_main(encoder_state_t * const state)
|
|||
add_checksum(state);
|
||||
}
|
||||
|
||||
kvz_nal_write(stream, KVZ_NAL_EOS_NUT, 0, 1);
|
||||
kvz_nal_write(stream, KVZ_NAL_EOS_NUT, 0, 1);
|
||||
|
||||
|
||||
//Get bitstream length for stats
|
||||
uint64_t newpos = kvz_bitstream_tell(stream);
|
||||
state->stats_bitstream_length = (newpos >> 3) - (curpos >> 3);
|
||||
|
|
Loading…
Reference in a new issue