linux/drivers/media/platform/vicodec
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
..
codec-fwht.c media: vicodec: change codec license to LGPL 2018-09-11 10:50:20 -04:00
codec-fwht.h media: vicodec: change codec license to LGPL 2018-09-11 10:50:20 -04:00
codec-v4l2-fwht.c media: vicodec: check for valid format in v4l2_fwht_en/decode 2018-09-24 09:09:07 -04:00
codec-v4l2-fwht.h media: vicodec: check for valid format in v4l2_fwht_en/decode 2018-09-24 09:09:07 -04:00
Kconfig media: vicodec: Drop unneeded symbol dependency 2018-09-24 09:13:13 -04:00
Makefile media: vicodec: split off v4l2 specific parts for the codec 2018-08-31 08:29:13 -04:00
vicodec-core.c media: vicodec: set state resolution from raw format 2018-12-03 15:04:36 -05:00