mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Fix a bug causing tmvp related flag being written on intra frames
This commit is contained in:
parent
e9044bfbc5
commit
be9776e40f
|
@ -1303,7 +1303,7 @@ void kvz_encoder_state_write_bitstream_slice_header(
|
|||
}
|
||||
}
|
||||
|
||||
if (state->encoder_control->cfg.tmvp_enable) {
|
||||
if (state->frame->slicetype != KVZ_SLICE_I && state->encoder_control->cfg.tmvp_enable) {
|
||||
//WRITE_U(stream, ref_negative ? 1 : 0, 1, "slice_temporal_mvp_enabled_flag");
|
||||
WRITE_U(stream, 0, 1, "sh_collocated_from_l0_flag");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue