mirror of https://git.ffmpeg.org/ffmpeg.git
Write valid free atom when -moov_size is specified.
Fixes ticket #3769.
This commit is contained in:
parent
ffa0b510cd
commit
0e70266bbf
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue