summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-05-14 09:34:21 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-05-14 09:34:21 +0200
commitb401f447d27be921b2ecb3b6c10a14e831018e7c (patch)
tree4e394745016aec30f58871a891de5235de210517
parentd8a3895ac937c0f997e741a7fa23387a70803a7c (diff)
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
-rw-r--r--gst-libs/gst/audio/audio-info.c1
1 files changed, 1 insertions, 0 deletions
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);