mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 20:54:07 +00:00
Remove extra parameter sets.
This commit is contained in:
parent
02ec26fcea
commit
afb9e8c3f4
|
@ -689,24 +689,26 @@ static void encoder_state_write_bitstream_main(encoder_state * const main_state)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (main_state->global->is_radl_frame) {
|
if (main_state->global->is_radl_frame) {
|
||||||
// Access Unit Delimiter (AUD)
|
if (main_state->global->frame == 0) {
|
||||||
if (encoder->aud_enable)
|
// Access Unit Delimiter (AUD)
|
||||||
encoder_state_write_bitstream_aud(main_state);
|
if (encoder->aud_enable)
|
||||||
|
encoder_state_write_bitstream_aud(main_state);
|
||||||
|
|
||||||
// Video Parameter Set (VPS)
|
// Video Parameter Set (VPS)
|
||||||
nal_write(stream, NAL_VPS_NUT, 0, 1);
|
nal_write(stream, NAL_VPS_NUT, 0, 1);
|
||||||
encoder_state_write_bitstream_vid_parameter_set(main_state);
|
encoder_state_write_bitstream_vid_parameter_set(main_state);
|
||||||
bitstream_align(stream);
|
bitstream_align(stream);
|
||||||
|
|
||||||
// Sequence Parameter Set (SPS)
|
// Sequence Parameter Set (SPS)
|
||||||
nal_write(stream, NAL_SPS_NUT, 0, 1);
|
nal_write(stream, NAL_SPS_NUT, 0, 1);
|
||||||
encoder_state_write_bitstream_seq_parameter_set(main_state);
|
encoder_state_write_bitstream_seq_parameter_set(main_state);
|
||||||
bitstream_align(stream);
|
bitstream_align(stream);
|
||||||
|
|
||||||
// Picture Parameter Set (PPS)
|
// Picture Parameter Set (PPS)
|
||||||
nal_write(stream, NAL_PPS_NUT, 0, 1);
|
nal_write(stream, NAL_PPS_NUT, 0, 1);
|
||||||
encoder_state_write_bitstream_pic_parameter_set(main_state);
|
encoder_state_write_bitstream_pic_parameter_set(main_state);
|
||||||
bitstream_align(stream);
|
bitstream_align(stream);
|
||||||
|
}
|
||||||
|
|
||||||
if (main_state->global->frame == 0) {
|
if (main_state->global->frame == 0) {
|
||||||
// Prefix SEI
|
// Prefix SEI
|
||||||
|
|
Loading…
Reference in a new issue