Commit 0e70266b authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Write valid free atom when -moov_size is specified.

Fixes ticket #3769.
parent ffa0b510
...@@ -4398,8 +4398,7 @@ static int mov_write_trailer(AVFormatContext *s) ...@@ -4398,8 +4398,7 @@ static int mov_write_trailer(AVFormatContext *s)
} }
avio_wb32(pb, size); avio_wb32(pb, size);
ffio_wfourcc(pb, "free"); ffio_wfourcc(pb, "free");
for (i = 0; i < size; i++) ffio_fill(pb, 0, size - 8);
avio_w8(pb, 0);
avio_seek(pb, moov_pos, SEEK_SET); avio_seek(pb, moov_pos, SEEK_SET);
} else { } else {
mov_write_moov_tag(pb, mov, s); mov_write_moov_tag(pb, mov, s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment