aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-follower/cec-processing.cpp
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-04-17 14:14:30 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-04-20 14:40:14 +0200
commit06dc2b0c0e9705d5d4607c89dfc7decf714a68d6 (patch)
tree7e5cf0427e96c93bfd6ed7b71d2a9811c324ad0f /utils/cec-follower/cec-processing.cpp
parent2984938795a23e4bdf5a4b75c12a4245a2e0daff (diff)
treewide: add extra {} to initialization
Found with clang-tidy's clang-diagnostic-missing-braces Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> [hverkuil-cisco@xs4all.nl: add spaces after { and before }]
Diffstat (limited to 'utils/cec-follower/cec-processing.cpp')
-rw-r--r--utils/cec-follower/cec-processing.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index df1d95c4..373519fc 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -729,22 +729,22 @@ static void processMsg(struct node *node, struct cec_msg &msg, unsigned me)
const struct short_audio_desc supported_formats[] = {
{ 2, SAD_FMT_CODE_AC3,
SAD_SAMPLE_FREQ_MASK_32 | SAD_SAMPLE_FREQ_MASK_44_1,
- 64, 0, 0 },
+ { 64 }, 0, 0 },
{ 4, SAD_FMT_CODE_AC3,
SAD_SAMPLE_FREQ_MASK_32,
- 32, 0, 0 },
+ { 32 }, 0, 0 },
{ 4, SAD_FMT_CODE_ONE_BIT_AUDIO,
SAD_SAMPLE_FREQ_MASK_48 | SAD_SAMPLE_FREQ_MASK_192,
- 123, 0, 0 },
+ { 123 }, 0, 0 },
{ 8, SAD_FMT_CODE_EXTENDED,
SAD_SAMPLE_FREQ_MASK_96,
- 0, 0, SAD_EXT_TYPE_DRA },
+ { 0 }, 0, SAD_EXT_TYPE_DRA },
{ 2, SAD_FMT_CODE_EXTENDED,
SAD_SAMPLE_FREQ_MASK_176_4,
- SAD_FRAME_LENGTH_MASK_960 | SAD_FRAME_LENGTH_MASK_1024, 1, SAD_EXT_TYPE_MPEG4_HE_AAC_SURROUND },
+ { SAD_FRAME_LENGTH_MASK_960 | SAD_FRAME_LENGTH_MASK_1024 }, 1, SAD_EXT_TYPE_MPEG4_HE_AAC_SURROUND },
{ 2, SAD_FMT_CODE_EXTENDED,
SAD_SAMPLE_FREQ_MASK_44_1,
- SAD_BIT_DEPTH_MASK_16 | SAD_BIT_DEPTH_MASK_24, 0, SAD_EXT_TYPE_LPCM_3D_AUDIO },
+ { SAD_BIT_DEPTH_MASK_16 | SAD_BIT_DEPTH_MASK_24 }, 0, SAD_EXT_TYPE_LPCM_3D_AUDIO },
};
__u8 num_descriptors, audio_format_id[4], audio_format_code[4];

Privacy Policy