Revert "obs-ffmpeg: Add option to use b-frames as reference"

This reverts commit adf3337d3c.
Currently causing timestamp issues resulting in FPS issues.
This commit is contained in:
Gol-D-Ace
2019-03-14 10:05:55 +01:00
parent e001e2d1b9
commit f27a00d266
3 changed files with 0 additions and 13 deletions

View File

@@ -318,7 +318,6 @@ static bool init_encoder(struct nvenc_data *enc, obs_data_t *settings)
const char *profile = obs_data_get_string(settings, "profile");
bool psycho_aq = obs_data_get_bool(settings, "psycho_aq");
bool lookahead = obs_data_get_bool(settings, "lookahead");
bool bframes_as_ref = obs_data_get_bool(settings, "bframes_as_ref");
int bf = (int)obs_data_get_int(settings, "bf");
bool vbr = astrcmpi(rc, "VBR") == 0;
NVENCSTATUS err;
@@ -434,11 +433,6 @@ static bool init_encoder(struct nvenc_data *enc, obs_data_t *settings)
config->rcParams.enableTemporalAQ = psycho_aq;
}
/* b-frames as reference */
if (bf >= 1 && bframes_as_ref &&
nv_get_cap(enc, NV_ENC_CAPS_SUPPORT_BFRAME_REF_MODE))
h264_config->useBFramesAsRef = NV_ENC_BFRAME_REF_MODE_MIDDLE;
/* -------------------------- */
/* rate control */