static int mov_write_mfhd_tag(AVIOContext *pb, MOVMuxContext *mov)
{
- int i;
int64_t pos = avio_tell(pb);
avio_wb32(pb, 0); /* size placeholder*/
ffio_wfourcc(pb, "mfhd");
#endif
if (t = av_dict_get(s->metadata, "creation_time", NULL, 0))
mov->time = ff_iso8601_to_unix_time(t->value);
- mov->time += 0x7C25B080; //1970 based -> 1904 based
+ if (mov->time)
+ mov->time += 0x7C25B080; // 1970 based -> 1904 based
if (mov->chapter_track)
mov_create_chapter_track(s, mov->chapter_track);
{
MOVMuxContext *mov = s->priv_data;
AVIOContext *pb = s->pb;
- int res = 0;
int i;
int64_t moov_pos = avio_tell(pb);