mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-12-18 19:14:07 +00:00
Disable usage of P-slices when GOP
This commit is contained in:
parent
26082d5328
commit
5ae9a70e38
|
@ -667,9 +667,6 @@ static void encoder_state_new_frame(encoder_state_t * const state) {
|
||||||
state->global->pictype = NAL_IDR_W_RADL;
|
state->global->pictype = NAL_IDR_W_RADL;
|
||||||
} else {
|
} else {
|
||||||
state->global->slicetype = encoder->cfg->intra_period==1 ? SLICE_I : (state->encoder_control->cfg->gop_len?SLICE_B:SLICE_P);
|
state->global->slicetype = encoder->cfg->intra_period==1 ? SLICE_I : (state->encoder_control->cfg->gop_len?SLICE_B:SLICE_P);
|
||||||
if (state->global->slicetype == SLICE_B && (state->global->frame - 1) % 8 == 0) {
|
|
||||||
state->global->slicetype = SLICE_P;
|
|
||||||
}
|
|
||||||
state->global->pictype = NAL_TRAIL_R;
|
state->global->pictype = NAL_TRAIL_R;
|
||||||
}
|
}
|
||||||
if (state->encoder_control->cfg->gop_len) {
|
if (state->encoder_control->cfg->gop_len) {
|
||||||
|
|
Loading…
Reference in a new issue