Browse Source

Merge "video: driver: reject odd resolution for encode sessions"

qctecmdr 4 years ago
parent
commit
70eb3b1a5d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      driver/vidc/src/msm_vidc_driver.c

+ 2 - 1
driver/vidc/src/msm_vidc_driver.c

@@ -5148,7 +5148,8 @@ int msm_vidc_check_session_supported(struct msm_vidc_inst *inst)
 	}
 
 	/* reject odd resolution session */
-	if (is_odd(iwidth) || is_odd(iheight) || is_odd(owidth) || is_odd(oheight)) {
+	if (is_encode_session(inst) &&
+		(is_odd(iwidth) || is_odd(iheight) || is_odd(owidth) || is_odd(oheight))) {
 		i_vpr_e(inst, "resolution is not even. input [%u x %u], output [%u x %u]\n",
 			iwidth, iheight, owidth, oheight);
 		goto exit;