diff options
author | James Almer <jamrial@gmail.com> | 2024-07-19 20:50:52 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-07-19 21:07:32 -0300 |
commit | 2aab4e4cc0b4a666c7e5a752b25a337710b20bdb (patch) | |
tree | a478e247e57e4b6d91302dd959cceec5889cfd7a /libavformat | |
parent | 9ce065c90decf1a07a810ccb699a491d41a720d2 (diff) | |
download | ffmpeg-2aab4e4cc0b4a666c7e5a752b25a337710b20bdb.tar.gz |
avformat/iamf_writer: disallow Opus extradata with mapping family other than 0
Clause 3.11.1 of IAMF[1] states the Opus ID Header should conform to ChannelMappingFamily == 0.
[1]https://aomediacodec.github.io/iamf/#opus-specific
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/iamf_writer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/iamf_writer.c b/libavformat/iamf_writer.c index afe7a149cb..5e8d8f768b 100644 --- a/libavformat/iamf_writer.c +++ b/libavformat/iamf_writer.c @@ -39,7 +39,7 @@ static int update_extradata(IAMFCodecConfig *codec_config) switch(codec_config->codec_id) { case AV_CODEC_ID_OPUS: - if (codec_config->extradata_size < 19) + if (codec_config->extradata_size != 19) return AVERROR_INVALIDDATA; codec_config->extradata_size -= 8; AV_WB8(codec_config->extradata + 0, AV_RL8(codec_config->extradata + 8)); // version |