Write valid free atom when -moov_size is specified.

Fixes ticket #3769.
This commit is contained in:
Carl Eugen Hoyos 2014-07-18 20:30:14 +02:00
parent ffa0b510cd
commit 0e70266bbf

View File

@ -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);