opusdec: guard against decoding 0 samples
https://bugzilla.gnome.org/show_bug.cgi?id=665078
This commit is contained in:
parent
a1044ac635
commit
5b2c4c6c13
@ -414,12 +414,12 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buffer)
|
|||||||
GST_INFO_OBJECT (dec,
|
GST_INFO_OBJECT (dec,
|
||||||
"Skipping %u samples (%u at 48000 Hz, %u left to skip)", skip,
|
"Skipping %u samples (%u at 48000 Hz, %u left to skip)", skip,
|
||||||
scaled_skip, dec->pre_skip);
|
scaled_skip, dec->pre_skip);
|
||||||
|
}
|
||||||
|
|
||||||
if (GST_BUFFER_SIZE (outbuf) == 0) {
|
if (GST_BUFFER_SIZE (outbuf) == 0) {
|
||||||
gst_buffer_unref (outbuf);
|
gst_buffer_unref (outbuf);
|
||||||
outbuf = NULL;
|
outbuf = NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* Apply gain */
|
/* Apply gain */
|
||||||
/* Would be better off leaving this to a volume element, as this is
|
/* Would be better off leaving this to a volume element, as this is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user