linux/drivers/media/platform/allegro-dvt
Ricardo Ribalda 669d51f8f4 media: allegro: nal-hevc: Replace array[1] with array[N]
Structures that have a single element array as the last field can be
mistaken as a "flex array".

We could replace all the single element arrays in the structure with
single element fields, but this driver prefers to follow the ITU-T H.265
specification, which defines it as an array.

If we introduce a new define N_HRD_PARAMS, we make clear our
intentions.

This fixes this cocci warning:
drivers/media/platform/allegro-dvt/nal-hevc.h:102:14-22: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil: fix typo in subject and commit log]
2024-05-31 13:51:16 +02:00
..
allegro-core.c media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
allegro-mail.c media: allegro-dvt: increase buffer size in msg_type_name() 2023-09-27 10:47:22 +02:00
allegro-mail.h media: allegro: Annotate struct mcu_msg_push_buffers_internal with __counted_by 2023-10-07 10:55:45 +02:00
Kconfig media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
Makefile media: allegro: add HEVC NAL unit generator 2021-01-27 16:04:04 +01:00
nal-h264.c media: allegro: extract nal value lookup functions to header 2021-10-20 15:59:41 +01:00
nal-h264.h media: allegro: write correct colorspace into SPS 2021-10-20 16:00:28 +01:00
nal-hevc.c media: allegro: nal-hevc: implement generator for vui 2021-10-20 16:01:23 +01:00
nal-hevc.h media: allegro: nal-hevc: Replace array[1] with array[N] 2024-05-31 13:51:16 +02:00
nal-rbsp.c media: allegro: add helper to report unsupported fields 2021-01-27 15:52:23 +01:00
nal-rbsp.h media: allegro: add helper to report unsupported fields 2021-01-27 15:52:23 +01:00