|
@@ -2305,6 +2305,8 @@ int msm_vdec_process_cmd(struct msm_vidc_inst *inst, u32 cmd)
|
|
|
return rc;
|
|
|
} else if (cmd == V4L2_DEC_CMD_START) {
|
|
|
i_vpr_h(inst, "received cmd: resume\n");
|
|
|
+ vb2_clear_last_buffer_dequeued(&inst->vb2q[OUTPUT_META_PORT]);
|
|
|
+ vb2_clear_last_buffer_dequeued(&inst->vb2q[OUTPUT_PORT]);
|
|
|
|
|
|
if (capability->cap[CODED_FRAMES].value == CODED_FRAMES_INTERLACE &&
|
|
|
!is_ubwc_colorformat(capability->cap[PIX_FMTS].value)) {
|
|
@@ -2317,8 +2319,6 @@ int msm_vdec_process_cmd(struct msm_vidc_inst *inst, u32 cmd)
|
|
|
if (!msm_vidc_allow_start(inst))
|
|
|
return -EBUSY;
|
|
|
port = (inst->state == MSM_VIDC_DRAIN_LAST_FLAG) ? INPUT_PORT : OUTPUT_PORT;
|
|
|
- vb2_clear_last_buffer_dequeued(&inst->vb2q[OUTPUT_META_PORT]);
|
|
|
- vb2_clear_last_buffer_dequeued(&inst->vb2q[OUTPUT_PORT]);
|
|
|
|
|
|
rc = msm_vidc_state_change_start(inst);
|
|
|
if (rc)
|