mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
media: cedrus: h265: Associate mv col buffers with buffer
[ Upstream commit0ee952c2f4] Currently mv col aux buffers are allocated as a pool. This is not optimal because pool size equals number of buffers before stream is started. Buffers can easily be allocated afterwards. In such cases, invalid pointer is assigned to the decoding frame and Cedrus might overwrite memory location which is allocated to different task. Solve this issue with allocating mv col buffer once capture buffer is actually used. Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Stable-dep-of:3a11887f7f("media: cedrus: h265: Fix configuring bitstream size") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
6632a54ac8
commit
8006813ebd
2 changed files with 38 additions and 34 deletions
Loading…
Add table
Add a link
Reference in a new issue