[FFmpeg-cvslog] avformat/mlvdec: close any additional .Mxx files

Peter Ross git at videolan.org
Sun Apr 27 16:36:56 CEST 2014


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Sun Apr 27 12:44:16 2014 +1000| [b3c0d010c3c77b58c25fe491435f20f1b92ab2c2] | committer: Michael Niedermayer

avformat/mlvdec: close any additional .Mxx files

Signed-off-by: Peter Ross <pross at xvid.org>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b3c0d010c3c77b58c25fe491435f20f1b92ab2c2
---

 libavformat/mlvdec.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c
index 4dcf52b..a980ed6 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;
 }
 



More information about the ffmpeg-cvslog mailing list