aboutsummaryrefslogtreecommitdiff
path: root/libavdevice/lavfi.c
diff options
context:
space:
mode:
authorMichael Niedermayer2015-01-08 14:11:44 +0100
committerMichael Niedermayer2015-01-08 14:11:44 +0100
commite5993aeb606e9748dc223907b86c1218a49c67c6 (patch)
treedbde1877dd6d4cb732821f1daafc404e5dc3d0f8 /libavdevice/lavfi.c
parenteb3e661babfdd9583db1a6706ca526a33b49a467 (diff)
avdevice/lavfi: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/lavfi.c')
-rw-r--r--libavdevice/lavfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index d0e6bf5f4d..64db376899 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);