mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 06:41:06 -04:00
media: controls: Validate H264 stateless controls
Check that all the fields that correspond or are related to a H264 specification syntax element have legal values. Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Tested-by: Jernej Skrabec <jernej.skrabec@siol.net> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
8917a5f61e
commit
b32e48503d
@@ -98,6 +98,15 @@ enum v4l2_mpeg_video_h264_start_code {
|
||||
#define V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD 0x20
|
||||
#define V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE 0x40
|
||||
|
||||
#define V4L2_H264_SPS_HAS_CHROMA_FORMAT(sps) \
|
||||
((sps)->profile_idc == 100 || (sps)->profile_idc == 110 || \
|
||||
(sps)->profile_idc == 122 || (sps)->profile_idc == 244 || \
|
||||
(sps)->profile_idc == 44 || (sps)->profile_idc == 83 || \
|
||||
(sps)->profile_idc == 86 || (sps)->profile_idc == 118 || \
|
||||
(sps)->profile_idc == 128 || (sps)->profile_idc == 138 || \
|
||||
(sps)->profile_idc == 139 || (sps)->profile_idc == 134 || \
|
||||
(sps)->profile_idc == 135)
|
||||
|
||||
/**
|
||||
* struct v4l2_ctrl_h264_sps - H264 sequence parameter set
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user