Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 308f9549 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vdec: Avoid setting incorrect color format for DPB buffers"

parents 3cd0879d ec359c2b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1262,8 +1262,6 @@ int msm_vdec_s_fmt(struct msm_vidc_inst *inst, struct v4l2_format *f)

		inst->prop.width[CAPTURE_PORT] = f->fmt.pix_mp.width;
		inst->prop.height[CAPTURE_PORT] = f->fmt.pix_mp.height;
		msm_comm_set_color_format(inst, HAL_BUFFER_OUTPUT,
			f->fmt.pix_mp.pixelformat);

		inst->fmts[fmt->type] = fmt;
		if (msm_comm_get_stream_output_mode(inst) ==
@@ -1279,6 +1277,9 @@ int msm_vdec_s_fmt(struct msm_vidc_inst *inst, struct v4l2_format *f)
				frame_sz.height);
			ret = msm_comm_try_set_prop(inst,
				HAL_PARAM_FRAME_SIZE, &frame_sz);
		} else {
			msm_comm_set_color_format(inst, HAL_BUFFER_OUTPUT,
				f->fmt.pix_mp.pixelformat);
		}

		f->fmt.pix_mp.plane_fmt[0].sizeimage =