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
This commit is contained in:
Wim Taymans 2010-02-01 15:25:11 +01:00 committed by Wim Taymans
parent 37eb1a607c
commit 8312a8f89d

View file

@ -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;