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 <rkurapat@codeaurora.org>
(cherry picked from commit c165675bf03feb182bfd46d2ac5ceebcf4987f74)

Signed-off-by: Manish Kumar <manishku@codeaurora.org>
This commit is contained in:
Rajeshwar Kurapaty 2012-12-11 19:26:49 +05:30 committed by Stephen Boyd
parent f9fd1434a4
commit 9044dea422

View file

@ -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;