From 057e53d759ac05417bbc7880b1d2e2ac7f08fc67 Mon Sep 17 00:00:00 2001 From: Angie Chiang Date: Thu, 18 Jul 2024 12:37:35 -0700 Subject: [PATCH] Small refactoring in vp9_firstpass.c Change-Id: If5e76b05f584650ff675363e6eb347bedae7728c --- vp9/encoder/vp9_firstpass.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index 327104bbd45..f146c1dbd59 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -2994,13 +2994,11 @@ static void define_gf_group(VP9_COMP *cpi, int gf_start_show_idx) { // we should refactor the code so that this part is not used by // ext_ratectrl. break; - } else { - vpx_internal_error(&cm->error, VPX_CODEC_ERROR, - "In define_gf_group(), frame_stats is NULL when " - "calculating gf_group_err."); - - break; } + vpx_internal_error(&cm->error, VPX_CODEC_ERROR, + "In define_gf_group(), frame_stats is NULL when " + "calculating gf_group_err."); + break; } // Accumulate error score of frames in this gf group. gf_group_err += calc_norm_frame_score(oxcf, frame_info, frame_stats,