mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 14:30:00 +01:00
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:
@@ -480,6 +480,9 @@ static int scalable_channel_layout_config(void *s, AVIOContext *pb,
|
|||||||
av_channel_layout_copy(&layer->ch_layout, &ch_layout);
|
av_channel_layout_copy(&layer->ch_layout, &ch_layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (k != audio_element->nb_substreams)
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user