diff options
author | Peter Ross <pross@xvid.org> | 2014-04-27 12:44:16 +1000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-27 15:34:27 +0200 |
commit | b3c0d010c3c77b58c25fe491435f20f1b92ab2c2 (patch) | |
tree | 3618cb32c39c9a26d3e22b99f1e0fbccc5b17140 | |
parent | 8bd6837e5105c5e7a9758f818cf6eaf2b8c3efd6 (diff) | |
download | ffmpeg-b3c0d010c3c77b58c25fe491435f20f1b92ab2c2.tar.gz |
avformat/mlvdec: close any additional .Mxx files
Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mlvdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |