mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
opusdec: fix bogus assertion
This commit is contained in:
parent
d3fda8a644
commit
5f85454020
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue