From 1e00fbdacb8f9afd3113fdccf56632277552248c Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 25 Nov 2011 12:39:20 +0000 Subject: [PATCH] opusdec: fix bogus assertion --- ext/opus/gstopusdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index 58283973a2..cc1bdb2a11 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -224,7 +224,8 @@ gst_opus_dec_parse_header (GstOpusDec * dec, GstBuffer * buf) const GstAudioChannelPosition *pos = NULL; g_return_val_if_fail (gst_opus_header_is_id_header (buf), GST_FLOW_ERROR); - g_return_val_if_fail (dec->n_channels != data[9], GST_FLOW_ERROR); + g_return_val_if_fail (dec->n_channels == 0 + || dec->n_channels == data[9], GST_FLOW_ERROR); dec->n_channels = data[9]; dec->pre_skip = GST_READ_UINT16_LE (data + 10);