mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
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:
parent
37eb1a607c
commit
8312a8f89d
1 changed files with 0 additions and 3 deletions
|
@ -2069,9 +2069,6 @@ gst_ffmpegdec_audio_frame (GstFFMpegDec * ffmpegdec,
|
||||||
in_duration)))
|
in_duration)))
|
||||||
goto clipped;
|
goto clipped;
|
||||||
|
|
||||||
} else if (len > 0 && have_data == 0) {
|
|
||||||
/* cache output, because it may be used for caching (in-place) */
|
|
||||||
*outbuf = NULL;
|
|
||||||
} else {
|
} else {
|
||||||
gst_buffer_unref (*outbuf);
|
gst_buffer_unref (*outbuf);
|
||||||
*outbuf = NULL;
|
*outbuf = NULL;
|
||||||
|
|
Loading…
Reference in a new issue