mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
opusdec: fix wrong buffer being checked for missing data
This caused a decoding error if the resulting (wrong) buffer size was passed to the Opus decoding API. https://bugzilla.gnome.org/show_bug.cgi?id=758158
This commit is contained in:
parent
bb240714fb
commit
36125a844d
1 changed files with 2 additions and 2 deletions
|
@ -441,10 +441,10 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buffer)
|
|||
size = 0;
|
||||
}
|
||||
|
||||
if (gst_buffer_get_size (buffer) == 0) {
|
||||
if (gst_buffer_get_size (buf) == 0) {
|
||||
GstClockTime const opus_plc_alignment = 2500 * GST_USECOND;
|
||||
GstClockTime aligned_missing_duration;
|
||||
GstClockTime missing_duration = GST_BUFFER_DURATION (buffer);
|
||||
GstClockTime missing_duration = GST_BUFFER_DURATION (buf);
|
||||
|
||||
GST_DEBUG_OBJECT (dec,
|
||||
"missing buffer, doing PLC duration %" GST_TIME_FORMAT
|
||||
|
|
Loading…
Reference in a new issue