[FFmpeg-devel] [PATCH] lavd/lavfi: free buffers requested for pts probing
Hendrik Leppkes
h.leppkes at gmail.com
Tue Mar 12 13:41:57 CET 2013
---
I'm not 100% sure this is the right fix, but it seems to tbe the most logical (and does fix the memleaks)
If you request a frame from lavfi, you should free it afterwards, even if the request was a peek,
or does the API specify otherwise?
libavdevice/lavfi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 3b6f0c3..85dc5f0 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -344,6 +344,7 @@ static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt)
min_pts = d;
min_pts_sink_idx = i;
}
+ avfilter_unref_buffer(ref);
}
if (min_pts == DBL_MAX)
return AVERROR_EOF;
--
1.8.1.5
More information about the ffmpeg-devel
mailing list