OSDN Git Service

media: mtk-vcodec: Remove extra area allocation in an input buffer on encoding
authorHirokazu Honda <hiroh@chromium.org>
Sun, 10 Nov 2019 06:25:34 +0000 (07:25 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 10 Nov 2019 06:25:34 +0000 (07:25 +0100)
commit3192b2ca79b3f72fbc0eab9cd95432e3c317ab0d
treee04349f2b80e8d09a476aca676086ae3463cf099
parentc20df61861b702605046a7b61b1da6143c05fc4d
media: mtk-vcodec: Remove extra area allocation in an input buffer on encoding

MediaTek encoder allocates non pixel data area for an input buffer every
plane. As the input buffer should be read-only, the driver should not write
anything in the buffer. Therefore, the extra data should be unnecessary.

Signed-off-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c