avformat/iamf_parse: ensure the stream count in a scalable channel representation is equal to the audio element's stream count

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2025-11-25 12:42:30 -03:00
parent 554ae5ada9
commit faa382e5b1

View File

@@ -480,6 +480,9 @@ static int scalable_channel_layout_config(void *s, AVIOContext *pb,
av_channel_layout_copy(&layer->ch_layout, &ch_layout);
}
if (k != audio_element->nb_substreams)
return AVERROR_INVALIDDATA;
return 0;
}