linux-hardened/drivers/media/platform
Hans Verkuil daa3fc4454 media: vicodec: set state resolution from raw format
The state structure contains the resolution expected by the decoder
and encoder. For an encoder that resolution should be taken from the
OUTPUT format, and for a decoder from the CAPTURE format.

If the wrong format is picked, a buffer overrun can occur if there is
a mismatch between the CAPTURE and OUTPUT formats.

The real fix would be to correctly implement the stateful codec
specification, but that will take more time. For now just prevent the
buffer overrun.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-12-03 15:04:36 -05:00
..
am437x media: v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero 2018-10-04 16:21:02 -04:00
atmel media: v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero 2018-10-04 16:21:02 -04:00
cadence media: v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero 2018-10-04 16:21:02 -04:00
cec-gpio
coda
cros-ec-cec
davinci media: isif: fix a NULL pointer dereference bug 2018-10-09 08:02:52 -04:00
exynos-gsc
exynos4-is media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
marvell-ccic media: v4l: mediabus: Recognise CSI-2 D-PHY and C-PHY 2018-10-04 16:06:15 -04:00
meson
mtk-jpeg
mtk-mdp
mtk-vcodec
mtk-vpu media: VPU: mediatek: don't pass an unused parameter 2018-10-04 14:27:16 -04:00
omap
omap3isp media: omap3isp: Unregister media device as first 2018-11-06 07:11:06 -05:00
qcom media: venus: vdec: fix decoded data size 2018-10-09 08:07:07 -04:00
rcar-vin media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
rockchip/rga
s3c-camif media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
s5p-cec
s5p-g2d
s5p-jpeg
s5p-mfc media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
soc_camera media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
sti
stm32 media: v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero 2018-10-04 16:21:02 -04:00
tegra-cec
ti-vpe media: v4l: mediabus: Recognise CSI-2 D-PHY and C-PHY 2018-10-04 16:06:15 -04:00
vicodec media: vicodec: set state resolution from raw format 2018-12-03 15:04:36 -05:00
vimc
vivid media: vivid: drop v4l2_ctrl_request_complete() from start_streaming 2018-12-03 15:04:07 -05:00
vsp1 media: vsp1: Fix LIF buffer thresholds 2018-12-03 14:57:30 -05:00
xilinx media: platform: Switch to v4l2_async_notifier_add_subdev 2018-10-04 15:55:38 -04:00
fsl-viu.c
imx-pxp.c media: imx-pxp: include linux/interrupt.h 2018-10-04 14:30:14 -04:00
imx-pxp.h
Kconfig media updates for v4.20-rc1 2018-10-29 14:29:58 -07:00
m2m-deinterlace.c
Makefile
mx2_emmaprp.c
pxa_camera.c media: v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero 2018-10-04 16:21:02 -04:00
rcar-fcp.c
rcar_drif.c media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
rcar_fdp1.c
rcar_jpu.c
renesas-ceu.c media: renesas-ceu: Use default mbus settings 2018-10-04 16:25:33 -04:00
sh_veu.c
sh_vou.c
via-camera.c
via-camera.h
video-mux.c media: platform: video-mux: Register a subdev notifier 2018-10-04 15:35:08 -04:00
vim2m.c media: Rename vb2_m2m_request_queue -> v4l2_m2m_request_queue 2018-11-06 05:24:22 -05:00