Commit 6ea4e8c2 authored by Stanimir Varbanov's avatar Stanimir Varbanov Committed by sanglipeng
Browse files

media: venus: vdec: Fix non reliable setting of LAST flag

stable inclusion
from stable-v5.10.180
commit a30297bff881dd13bd74cfa4c93034e47396011e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8DDFN

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a30297bff881dd13bd74cfa4c93034e47396011e



--------------------------------

[ Upstream commit acf8a57d ]

In real use of dynamic-resolution-change it is observed that the
LAST buffer flag (which marks the last decoded buffer with the
resolution before the resolution-change event) is not reliably set.

Fix this by set the LAST buffer flag on next queued capture buffer
after the resolution-change event.

Signed-off-by: default avatarStanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Stable-dep-of: 50248ad9 ("media: venus: dec: Fix handling of the start cmd")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent ce683d98
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment