summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2016-02-02 15:20:48 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2016-02-02 15:22:55 +0000
commit8e9345ec865a3d76b12026066df9d607cf3f1145 (patch)
tree1ec94f4c2701bc8362622ee5399102913da366fa
parent95bf0ae2ae3b4ae2843ef880417014cfd742d351 (diff)
downloadgstreamer-plugins-base-8e9345ec865a3d76b12026066df9d607cf3f1145.tar.gz
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 f2512d119..649cc0c61 100644
--- a/ext/opus/gstopusdec.c
+++ b/ext/opus/gstopusdec.c
@@ -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