From b3c0d010c3c77b58c25fe491435f20f1b92ab2c2 Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Sun, 27 Apr 2014 12:44:16 +1000 Subject: [PATCH] avformat/mlvdec: close any additional .Mxx files Signed-off-by: Peter Ross Signed-off-by: Michael Niedermayer --- libavformat/mlvdec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c index 4dcf52b2e3..a980ed6218 100644 --- a/libavformat/mlvdec.c +++ b/libavformat/mlvdec.c @@ -452,6 +452,10 @@ static int read_seek(AVFormatContext *avctx, int stream_index, int64_t timestamp static int read_close(AVFormatContext *s) { MlvContext *mlv = s->priv_data; + int i; + for (i = 0; i < 100; i++) + if (mlv->pb[i]) + avio_close(mlv->pb[i]); return 0; }