diff --git a/subprojects/gst-plugins-base/tools/gst-discoverer.c b/subprojects/gst-plugins-base/tools/gst-discoverer.c index e3f048bed5..4a2a1b4bc4 100644 --- a/subprojects/gst-plugins-base/tools/gst-discoverer.c +++ b/subprojects/gst-plugins-base/tools/gst-discoverer.c @@ -222,7 +222,7 @@ format_channel_mask (GstDiscovererAudioInfo * 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); for (i = 0; i < channels; i++) {