Commit 36125a84 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h
Browse files

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.
parent bb240714
......@@ -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);
"missing buffer, doing PLC duration %" GST_TIME_FORMAT
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment