mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
discoverer: Don't print channel layout for more than 64 channels
64+ channels are always unpositioned / unknown layout. Thanks to Antonio Morales for finding and reporting the issue. Fixes GHSL-2024-248 Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3864 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8034>
This commit is contained in:
parent
e633ec6428
commit
aa07d94c10
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ format_channel_mask (GstDiscovererAudioInfo * ainfo)
|
||||||
|
|
||||||
channel_mask = gst_discoverer_audio_info_get_channel_mask (ainfo);
|
channel_mask = gst_discoverer_audio_info_get_channel_mask (ainfo);
|
||||||
|
|
||||||
if (channel_mask != 0) {
|
if (channel_mask != 0 && channels <= 64) {
|
||||||
gst_audio_channel_positions_from_mask (channels, channel_mask, position);
|
gst_audio_channel_positions_from_mask (channels, channel_mask, position);
|
||||||
|
|
||||||
for (i = 0; i < channels; i++) {
|
for (i = 0; i < channels; i++) {
|
||||||
|
|
Loading…
Reference in a new issue