summaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-08 14:11:44 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-08 14:11:44 +0100
commite5993aeb606e9748dc223907b86c1218a49c67c6 (patch)
treedbde1877dd6d4cb732821f1daafc404e5dc3d0f8 /libavdevice
parenteb3e661babfdd9583db1a6706ca526a33b49a467 (diff)
downloadffmpeg-streaming-e5993aeb606e9748dc223907b86c1218a49c67c6.zip
ffmpeg-streaming-e5993aeb606e9748dc223907b86c1218a49c67c6.tar.gz
avdevice/lavfi: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/lavfi.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud