mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
opusdec: fix bogus assertion
This commit is contained in:
parent
32e9de842f
commit
1e00fbdacb
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