From 2f691c151e122cfa5206ae0fb7f5b3385bc16dd9 Mon Sep 17 00:00:00 2001 From: Akshay Chandrashekhar Kalghatgi Date: Fri, 11 Sep 2020 16:49:00 -0700 Subject: [PATCH] msm: vidc: Disable timestamp store-fetch logic Sometimes during sequence change, timestamps may be repeated. This corner case breaks the TS store-fetch logic. Disabling this logic for secure decoder sessions. Change-Id: Ib5c00cc509364ce29b0f69f9b7441edd11b1eef2 Signed-off-by: Akshay Chandrashekhar Kalghatgi --- msm/vidc/msm_vidc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/msm/vidc/msm_vidc.c b/msm/vidc/msm_vidc.c index cf10f063a732..9f2fd2e570c2 100644 --- a/msm/vidc/msm_vidc.c +++ b/msm/vidc/msm_vidc.c @@ -433,7 +433,7 @@ int msm_vidc_qbuf(void *instance, struct media_device *mdev, timestamp_us = (s64)((b->timestamp.tv_sec * 1000000) + b->timestamp.tv_usec); if (is_decode_session(inst) && b->type == INPUT_MPLANE && - !is_heif_decoder(inst)) { + !is_heif_decoder(inst) && !is_secure_session(inst)) { if (inst->flush_timestamps) msm_comm_release_timestamps(inst); inst->flush_timestamps = false; @@ -515,7 +515,8 @@ int msm_vidc_dqbuf(void *instance, struct v4l2_buffer *b) if (is_decode_session(inst) && b->type == OUTPUT_MPLANE && !(b->flags & V4L2_BUF_FLAG_CODECCONFIG) && - !is_heif_decoder(inst)) + !is_heif_decoder(inst) && + !is_secure_session(inst)) msm_comm_fetch_ts_framerate(inst, b); return rc;