filter/ffmpeg: call av_frame_unref() before av_buffersink_get_frame()
Fix another memory leak. Closes https://github.com/MusicPlayerDaemon/MPD/issues/514
This commit is contained in:
parent
2700eed08d
commit
a21c6884f2
@ -66,6 +66,8 @@ FfmpegFilter::FilterPCM(ConstBuffer<void> src)
|
|||||||
|
|
||||||
/* collect filtered data from the FFmpeg audio buffer sink */
|
/* collect filtered data from the FFmpeg audio buffer sink */
|
||||||
|
|
||||||
|
out_frame.Unref();
|
||||||
|
|
||||||
err = av_buffersink_get_frame(buffer_sink.get(), out_frame.get());
|
err = av_buffersink_get_frame(buffer_sink.get(), out_frame.get());
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
if (err == AVERROR(EAGAIN) || err == AVERROR_EOF)
|
if (err == AVERROR(EAGAIN) || err == AVERROR_EOF)
|
||||||
|
Loading…
Reference in New Issue
Block a user