From 8312a8f89d067e065c22ad80d7efbac96d37b372 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 1 Feb 2010 15:25:11 +0100 Subject: [PATCH] ffdec: free audio buffer when not decoded When we don't decode an audio frame (for audio codecs that need a previous audio frame) free the buffer we allocated. See #608564 --- ext/ffmpeg/gstffmpegdec.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index 0b6d6218c8..92c7be4901 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -2069,9 +2069,6 @@ gst_ffmpegdec_audio_frame (GstFFMpegDec * ffmpegdec, in_duration))) goto clipped; - } else if (len > 0 && have_data == 0) { - /* cache output, because it may be used for caching (in-place) */ - *outbuf = NULL; } else { gst_buffer_unref (*outbuf); *outbuf = NULL;