diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2018-11-28 23:52:42 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-12-03 23:04:36 +0300 |
commit | daa3fc4454b21ac883152d07b4778bc4f83ec716 (patch) | |
tree | f4a42ca8edfd2e34ed7efdf0922a5e8c03b44945 /include/uapi/linux/v4l2-controls.h | |
parent | e714c92f42aeed6052a287b8ccf5a519e42bab15 (diff) | |
download | linux-daa3fc4454b21ac883152d07b4778bc4f83ec716.tar.xz |
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>
Diffstat (limited to 'include/uapi/linux/v4l2-controls.h')
0 files changed, 0 insertions, 0 deletions