Forráskód Böngészése

video: driver: fix LTR adjustment

LTR is not correctly getting adjusted due to incorrect
goto statement leading to failure in premerge with
test_AVC_NV12C_3LTR_4Layers_Adjutment_Encode testcase.
Fix this.

Change-Id: Ieda4f33d6679f645c2eb349e8ddf1015a3814711
Signed-off-by: Akshata Sahukar <[email protected]>
Akshata Sahukar 2 éve
szülő
commit
f00fe9f305
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      driver/platform/common/src/msm_vidc_platform.c

+ 3 - 2
driver/platform/common/src/msm_vidc_platform.c

@@ -961,9 +961,10 @@ int msm_vidc_adjust_ltr_count(void *instance, struct v4l2_ctrl *ctrl)
 		if (msm_vidc_get_parent_value(inst, LTR_COUNT,
 			ALL_INTRA, &all_intra, __func__))
 			return -EINVAL;
-		if (all_intra)
+		if (all_intra) {
 			adjusted_value = 0;
-		goto exit;
+			goto exit;
+		}
 	}
 
 	if (!msm_vidc_get_parent_value(inst, LTR_COUNT, PIX_FMTS,