summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2016-02-02 15:20:48 +0000
committerTim-Philipp Müller <tim@centricular.com>2016-04-06 14:02:35 +0100
commit1e963c77029c1da114f18810e7bcfe5d74de152a (patch)
tree6668e88c826bc94cb661545c14fff681838aa91d
parent41cc29f0f8753347e059bf13981f766c4b22b759 (diff)
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
-rw-r--r--ext/opus/gstopusdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c
index b081b99b2..20cc19677 100644
--- a/ext/opus/gstopusdec.c
+++ b/ext/opus/gstopusdec.c
@@ -446,10 +446,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