Commit 8312a8f8 authored by Wim Taymans's avatar Wim Taymans Committed by Wim Taymans

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
parent 37eb1a60
......@@ -2069,9 +2069,6 @@ gst_ffmpegdec_audio_frame (GstFFMpegDec * ffmpegdec,
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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment