From 5b2c4c6c13c005bb332f8cf38c54958dc7a09607 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Mon, 28 Nov 2011 19:38:34 +0000 Subject: [PATCH] opusdec: guard against decoding 0 samples https://bugzilla.gnome.org/show_bug.cgi?id=665078 --- ext/opus/gstopusdec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index 585b38335e..420caf1b5a 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -414,11 +414,11 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buffer) GST_INFO_OBJECT (dec, "Skipping %u samples (%u at 48000 Hz, %u left to skip)", skip, scaled_skip, dec->pre_skip); + } - if (GST_BUFFER_SIZE (outbuf) == 0) { - gst_buffer_unref (outbuf); - outbuf = NULL; - } + if (GST_BUFFER_SIZE (outbuf) == 0) { + gst_buffer_unref (outbuf); + outbuf = NULL; } /* Apply gain */ -- 2.34.1