media: cedrus: h265: Associate mv col buffers with buffer
[ Upstream commit 0ee952c2 ] 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: 3a11887f ("media: cedrus: h265: Fix configuring bitstream size") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading