diff options
author | James Almer <jamrial@gmail.com> | 2024-02-29 12:57:25 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-02-29 12:57:25 -0300 |
commit | ec7937f4a56e2fbd4070660ff19f0e02c039768a (patch) | |
tree | 320e91b37283d0810c60f61f425d0cae9644bc2c /libavformat/iamf.h | |
parent | 4a134eb14abbbf73f5e2b9452f3078c2bf3912ec (diff) | |
download | ffmpeg-ec7937f4a56e2fbd4070660ff19f0e02c039768a.tar.gz |
avformat/iamf: remove duplicated function
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/iamf.h')
-rw-r--r-- | libavformat/iamf.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavformat/iamf.h b/libavformat/iamf.h index ae1e46a99e..d8715b7333 100644 --- a/libavformat/iamf.h +++ b/libavformat/iamf.h @@ -165,6 +165,20 @@ struct IAMFSoundSystemMap { extern const AVChannelLayout ff_iamf_scalable_ch_layouts[10]; extern const struct IAMFSoundSystemMap ff_iamf_sound_system_map[13]; +static inline IAMFParamDefinition *ff_iamf_get_param_definition(const IAMFContext *iamf, + unsigned int parameter_id) +{ + IAMFParamDefinition *param_definition = NULL; + + for (int i = 0; i < iamf->nb_param_definitions; i++) + if (iamf->param_definitions[i]->param->parameter_id == parameter_id) { + param_definition = iamf->param_definitions[i]; + break; + } + + return param_definition; +} + void ff_iamf_free_audio_element(IAMFAudioElement **paudio_element); void ff_iamf_free_mix_presentation(IAMFMixPresentation **pmix_presentation); void ff_iamf_uninit_context(IAMFContext *c); |