From 5f3f0ff6e0c197df38a754f50284feecbb845fd8 Mon Sep 17 00:00:00 2001 From: chuanli1 Date: Wed, 6 Dec 2023 16:15:09 +0800 Subject: [PATCH] [Decode] Fix Jpeg dump issue Modify frame index for jpeg bitstream --- .../pipeline/decode_jpeg_pipeline_xe_lpm_plus_base.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/media_softlet/agnostic/Xe_M_plus/Xe_LPM_plus_base/codec/hal/dec/jpeg/pipeline/decode_jpeg_pipeline_xe_lpm_plus_base.cpp b/media_softlet/agnostic/Xe_M_plus/Xe_LPM_plus_base/codec/hal/dec/jpeg/pipeline/decode_jpeg_pipeline_xe_lpm_plus_base.cpp index 222dec3dcbe..9759a3470de 100644 --- a/media_softlet/agnostic/Xe_M_plus/Xe_LPM_plus_base/codec/hal/dec/jpeg/pipeline/decode_jpeg_pipeline_xe_lpm_plus_base.cpp +++ b/media_softlet/agnostic/Xe_M_plus/Xe_LPM_plus_base/codec/hal/dec/jpeg/pipeline/decode_jpeg_pipeline_xe_lpm_plus_base.cpp @@ -242,11 +242,8 @@ MOS_STATUS JpegPipelineXe_Lpm_Plus_Base::Execute() DECODE_CHK_STATUS(UserFeatureReport()); } - if (m_basicFeature->m_secondField || CodecHal_PictureIsFrame(m_basicFeature->m_curRenderPic)) - { - DecodeFrameIndex++; - m_basicFeature->m_frameNum = DecodeFrameIndex; - } + DecodeFrameIndex++; + m_basicFeature->m_frameNum = DecodeFrameIndex; DECODE_CHK_STATUS(m_statusReport->Reset()); }