[FFmpeg-cvslog] Write valid free atom when -moov_size is specified.

Carl Eugen Hoyos git at videolan.org
Fri Jul 18 23:40:30 CEST 2014


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Jul 18 20:30:14 2014 +0200| [0e70266bbfade1457189cc402cab2cdd7ec94c7b] | committer: Carl Eugen Hoyos

Write valid free atom when -moov_size is specified.

Fixes ticket #3769.

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

 libavformat/movenc.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index b3287ca..4b9a4f1 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -4398,8 +4398,7 @@ static int mov_write_trailer(AVFormatContext *s)
             }
             avio_wb32(pb, size);
             ffio_wfourcc(pb, "free");
-            for (i = 0; i < size; i++)
-                avio_w8(pb, 0);
+            ffio_fill(pb, 0, size - 8);
             avio_seek(pb, moov_pos, SEEK_SET);
         } else {
             mov_write_moov_tag(pb, mov, s);



More information about the ffmpeg-cvslog mailing list