From 26c72d2941d9e390597b04a6dee60befd36b55ac Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 8 Jan 2015 14:50:34 +0100 Subject: [PATCH] avformat/img2dec: Use avio_closep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libavformat/img2dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index 63de8fe752..015a20ad85 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -469,7 +469,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt) } } if (!s->is_pipe) - avio_close(f[i]); + avio_closep(&f[i]); if (ret[i] > 0) pkt->size += ret[i]; }