summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-09-15 15:39:11 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-09-15 16:00:43 -0300
commit7e834a5d85254831d692260db60698f49a26d3e2 (patch)
tree94a0eaf3bcd45a0db9045df65138b890ff6f1a61
parent0ed501ab035b7b00124bf8bfbac431413667e9c5 (diff)
downloadgstreamer-plugins-bad-7e834a5d85254831d692260db60698f49a26d3e2.tar.gz
opusdec: remove check for number of channels
opus decoder can convert from different number of channels, no need to check, just let it negotiate and create a new decoder if needed. https://bugzilla.gnome.org/show_bug.cgi?id=755059
-rw-r--r--ext/opus/gstopusdec.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c
index d8a7eb85f..7b7a10bb5 100644
--- a/ext/opus/gstopusdec.c
+++ b/ext/opus/gstopusdec.c
@@ -297,12 +297,6 @@ gst_opus_dec_parse_header (GstOpusDec * dec, GstBuffer * buf)
gst_buffer_map (buf, &map, GST_MAP_READ);
data = map.data;
- if (!(dec->n_channels == 0 || dec->n_channels == data[9])) {
- gst_buffer_unmap (buf, &map);
- GST_ERROR_OBJECT (dec, "Opus ID header has invalid channels");
- return GST_FLOW_ERROR;
- }
-
dec->n_channels = data[9];
dec->sample_rate = GST_READ_UINT32_LE (data + 12);
dec->pre_skip = GST_READ_UINT16_LE (data + 10);