Browse Source

Write valid free atom when -moov_size is specified.

Fixes ticket #3769.
tags/n2.4
Carl Eugen Hoyos 11 years ago
parent
commit
0e70266bbf
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/movenc.c

+ 1
- 2
libavformat/movenc.c 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);


Loading…
Cancel
Save