mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
media: fixed amports: fix h265 stream mode stuck issue
PD#152147:
decoder size r maybe overwrite by
amhevc_vdec_loadmc_ex return.
Change-Id: Icc87d293b1eedd557a6d2b12e7ee369d1c1cc7b4
This commit is contained in:
committed by
Dongjin Kim
parent
f92fc66378
commit
72bb68f1f5
@@ -9361,7 +9361,7 @@ static void run(struct vdec_s *vdec,
|
||||
{
|
||||
struct hevc_state_s *hevc =
|
||||
(struct hevc_state_s *)vdec->private;
|
||||
int r;
|
||||
int r, loadr;
|
||||
unsigned char check_sum = 0;
|
||||
|
||||
run_count[hevc->index]++;
|
||||
@@ -9426,11 +9426,11 @@ static void run(struct vdec_s *vdec,
|
||||
}
|
||||
|
||||
if (hevc->mmu_enable &&(get_cpu_type() >= MESON_CPU_MAJOR_ID_GXL))
|
||||
r = amhevc_vdec_loadmc_ex(vdec, "vh265_mc_mmu", hevc->fw->data);
|
||||
loadr = amhevc_vdec_loadmc_ex(vdec, "vh265_mc_mmu", hevc->fw->data);
|
||||
else
|
||||
r = amhevc_vdec_loadmc_ex(vdec, "vh265_mc", hevc->fw->data);
|
||||
loadr = amhevc_vdec_loadmc_ex(vdec, "vh265_mc", hevc->fw->data);
|
||||
|
||||
if (r < 0) {
|
||||
if (loadr < 0) {
|
||||
amhevc_disable();
|
||||
hevc_print(hevc, 0,
|
||||
"%s: Error amvdec_loadmc fail\n",
|
||||
|
||||
Reference in New Issue
Block a user