You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avformat/iamf_parse: add missing constrains for num_parameters in audio_element_oub()
Fixes ticket #11475. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -733,6 +733,12 @@ static int audio_element_obu(void *s, IAMFContext *c, AVIOContext *pb, int len)
|
||||
}
|
||||
|
||||
num_parameters = ffio_read_leb(pbc);
|
||||
if (num_parameters > 2 && audio_element_type == 0) {
|
||||
av_log(s, AV_LOG_ERROR, "Audio Element parameter count %u is invalid"
|
||||
" for Channel representations\n", num_parameters);
|
||||
ret = AVERROR_INVALIDDATA;
|
||||
goto fail;
|
||||
}
|
||||
if (num_parameters && audio_element_type != 0) {
|
||||
av_log(s, AV_LOG_ERROR, "Audio Element parameter count %u is invalid"
|
||||
" for Scene representations\n", num_parameters);
|
||||
|
Reference in New Issue
Block a user