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 <yvonne.chen@amlogic.com>
This commit is contained in:
Yvonne Chen
2017-11-11 19:39:55 +08:00
committed by Dongjin Kim
parent 6b976027b3
commit 54e2a386b7

View File

@@ -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),