vp8e_encode: check validate_config return

Change-Id: I56fad85cae4537f9d68febf9b9264c3e1cf82ce1
This commit is contained in:
James Zern 2015-08-24 20:07:48 -07:00
parent a390b90f01
commit c0523090be

View File

@ -879,7 +879,8 @@ static vpx_codec_err_t vp8e_encode(vpx_codec_alg_priv_t *ctx,
}
ctx->control_frame_flags = 0;
res = set_reference_and_update(ctx, flags);
if (!res)
res = set_reference_and_update(ctx, flags);
/* Handle fixed keyframe intervals */
if (ctx->cfg.kf_mode == VPX_KF_AUTO