opusdec: fix bogus assertion

This commit is contained in:
Vincent Penquerc'h 2011-11-25 12:39:20 +00:00
parent d3fda8a644
commit 5f85454020

View file

@ -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);