[FFmpeg-devel] [PATCH 4/4] avformat/mlvdec: close any additional .Mxx files

Peter Ross pross at xvid.org
Sun Apr 27 04:44:16 CEST 2014


Signed-off-by: Peter Ross <pross at xvid.org>
---
 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;
 }
 
-- 
1.8.3.2

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140427/dd70b9e9/attachment.asc>


More information about the ffmpeg-devel mailing list