Commit a21c6884 authored by Max Kellermann's avatar Max Kellermann

filter/ffmpeg: call av_frame_unref() before av_buffersink_get_frame()

parent 2700eed0
......@@ -66,6 +66,8 @@ FfmpegFilter::FilterPCM(ConstBuffer<void> src)
/* collect filtered data from the FFmpeg audio buffer sink */
out_frame.Unref();
err = av_buffersink_get_frame(buffer_sink.get(), out_frame.get());
if (err < 0) {
if (err == AVERROR(EAGAIN) || err == AVERROR_EOF)
......
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