diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-07-18 20:30:14 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-07-18 23:11:11 +0200 |
commit | 0e70266bbfade1457189cc402cab2cdd7ec94c7b (patch) | |
tree | 8ae2a9288749b0f2330b556e30f129c7b039ebf1 /libavformat | |
parent | ffa0b510cd15c1ef164cf376cf90761fae92d35d (diff) | |
download | ffmpeg-0e70266bbfade1457189cc402cab2cdd7ec94c7b.tar.gz |
Write valid free atom when -moov_size is specified.
Fixes ticket #3769.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index b3287cab93..4b9a4f1f46 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); |