From 54e2a386b7035dfcf79d8cbecc2856bf64dc4406 Mon Sep 17 00:00:00 2001 From: Yvonne Chen Date: Sat, 11 Nov 2017 19:39:55 +0800 Subject: [PATCH] media: fix crash 264 decoder crash issue PD# 153479 vdec tee swithing caused tee chaos without vdec stop Change-Id: Ie720ea14975a5b3cb019050485651ad266750037 Signed-off-by: Yvonne Chen --- .../media_modules/frame_provider/decoder/h264_multi/vmh264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/amlogic/media_modules/frame_provider/decoder/h264_multi/vmh264.c b/drivers/amlogic/media_modules/frame_provider/decoder/h264_multi/vmh264.c index 054a09e617e0..bb6dc19f59e9 100644 --- a/drivers/amlogic/media_modules/frame_provider/decoder/h264_multi/vmh264.c +++ b/drivers/amlogic/media_modules/frame_provider/decoder/h264_multi/vmh264.c @@ -3489,6 +3489,7 @@ static irqreturn_t vh264_isr_thread_fn(struct vdec_s *vdec) is_i_slice = is_idr; if (!is_i_slice) { if (hw->has_i_frame == 0) { + amvdec_stop(); hw->dec_result = DEC_RESULT_DONE; vdec_schedule_work(&hw->work); dpb_print(DECODE_ID(hw),