From 5ae9a70e38354ee7896ecb4af7d355f275bb52dd Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Fri, 20 Mar 2015 10:43:59 +0200 Subject: [PATCH] Disable usage of P-slices when GOP --- src/encoderstate.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/encoderstate.c b/src/encoderstate.c index d020c42a..3d6b1798 100644 --- a/src/encoderstate.c +++ b/src/encoderstate.c @@ -667,9 +667,6 @@ static void encoder_state_new_frame(encoder_state_t * const state) { state->global->pictype = NAL_IDR_W_RADL; } else { 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; } if (state->encoder_control->cfg->gop_len) {