From dbd694c7c400c102084f2cbec321a664bae42c76 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 23 Nov 2011 16:09:13 +0000 Subject: [PATCH] vorbisenc: do not accept 256 channels, 255 is the max vorbis supports --- ext/vorbis/gstvorbisenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/vorbis/gstvorbisenc.c b/ext/vorbis/gstvorbisenc.c index 56653178b7..45c871a085 100644 --- a/ext/vorbis/gstvorbisenc.c +++ b/ext/vorbis/gstvorbisenc.c @@ -65,7 +65,7 @@ GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-raw-float, " "rate = (int) [ 1, 200000 ], " - "channels = (int) [ 1, 256 ], " "endianness = (int) BYTE_ORDER, " + "channels = (int) [ 1, 255 ], " "endianness = (int) BYTE_ORDER, " "width = (int) 32") ); @@ -310,7 +310,7 @@ gst_vorbis_enc_generate_sink_caps (void) gst_caps_append_structure (caps, gst_structure_new ("audio/x-raw-float", "rate", GST_TYPE_INT_RANGE, 1, 200000, - "channels", GST_TYPE_INT_RANGE, 9, 256, + "channels", GST_TYPE_INT_RANGE, 9, 255, "endianness", G_TYPE_INT, G_BYTE_ORDER, "width", G_TYPE_INT, 32, NULL));