summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-08 14:50:34 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-08 14:50:34 +0100
commit26c72d2941d9e390597b04a6dee60befd36b55ac (patch)
treefdff28e044cdcd13f447ae33b2a8370b299734e9
parent50bb9b87ab6f3fe1e630a3e420f0bf39dbdde5e5 (diff)
downloadffmpeg-streaming-26c72d2941d9e390597b04a6dee60befd36b55ac.zip
ffmpeg-streaming-26c72d2941d9e390597b04a6dee60befd36b55ac.tar.gz
avformat/img2dec: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/img2dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 63de8fe..015a20a 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];
}
OpenPOWER on IntegriCloud