From 9044dea4227cd50c4e019cbeb916ffd116640b07 Mon Sep 17 00:00:00 2001 From: Rajeshwar Kurapaty Date: Tue, 11 Dec 2012 19:26:49 +0530 Subject: [PATCH] msm: vidc: Amend the check to reset data corrupt flag We should reset the data corrupt flag only for codecs other than H264 and MPEG-2 in line with the video firmware support. Hence, modify the conditional check. Change-Id: I7c4d5557a3f9b1d1762fe7cfcd5693a6760188f0 Signed-off-by: Rajeshwar Kurapaty (cherry picked from commit c165675bf03feb182bfd46d2ac5ceebcf4987f74) Signed-off-by: Manish Kumar --- drivers/video/msm/vidc/1080p/ddl/vcd_ddl_interrupt_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/msm/vidc/1080p/ddl/vcd_ddl_interrupt_handler.c b/drivers/video/msm/vidc/1080p/ddl/vcd_ddl_interrupt_handler.c index ca2e276b3988..757b3bae28f4 100644 --- a/drivers/video/msm/vidc/1080p/ddl/vcd_ddl_interrupt_handler.c +++ b/drivers/video/msm/vidc/1080p/ddl/vcd_ddl_interrupt_handler.c @@ -1258,7 +1258,7 @@ static u32 ddl_decoder_output_done_callback( output_vcd_frm->flags |= VCD_FRAME_FLAG_DATACORRUPT; } - if (decoder->codec.codec != VCD_CODEC_H264 || + if (decoder->codec.codec != VCD_CODEC_H264 && decoder->codec.codec != VCD_CODEC_MPEG2) output_vcd_frm->flags &= ~VCD_FRAME_FLAG_DATACORRUPT; output_vcd_frm->ip_frm_tag = dec_disp_info->tag_top;