From b401f447d27be921b2ecb3b6c10a14e831018e7c Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Tue, 14 May 2013 09:34:21 +0200 Subject: audio-info: For more than 64 channels don't allow a channel layout More than 64 channels have all channels unpositioned. https://bugzilla.gnome.org/show_bug.cgi?id=700259 --- gst-libs/gst/audio/audio-info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/audio/audio-info.c b/gst-libs/gst/audio/audio-info.c index 646ed5dc0..30ce6a135 100644 --- a/gst-libs/gst/audio/audio-info.c +++ b/gst-libs/gst/audio/audio-info.c @@ -119,6 +119,7 @@ gst_audio_info_set_format (GstAudioInfo * info, GstAudioFormat format, g_return_if_fail (info != NULL); g_return_if_fail (format != GST_AUDIO_FORMAT_UNKNOWN); + g_return_if_fail (channels <= 64 || position == NULL); finfo = gst_audio_format_get_info (format); -- cgit v1.2.3