ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Thu Jan 8 14:11:44 2015 +0100| [e5993aeb606e9748dc223907b86c1218a49c67c6] | committer: Michael Niedermayer
avdevice/lavfi: Use avio_closep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e5993aeb606e9748dc223907b86c1218a49c67c6 --- libavdevice/lavfi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c index d0e6bf5..64db376 100644 --- a/libavdevice/lavfi.c +++ b/libavdevice/lavfi.c @@ -147,7 +147,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx) goto end; av_bprint_init(&graph_file_pb, 0, AV_BPRINT_SIZE_UNLIMITED); ret = avio_read_to_bprint(avio, &graph_file_pb, INT_MAX); - avio_close(avio); + avio_closep(&avio); av_bprint_chars(&graph_file_pb, '\0', 1); if (!ret && !av_bprint_is_complete(&graph_file_pb)) ret = AVERROR(ENOMEM); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog