fix time stored in mov

based upon 23_fix_timestamp_in_mov.patch by (Calcium | calcium nurs or jp)

Originally committed as revision 4067 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2005-03-23 11:15:45 +00:00
parent a9aa346717
commit 8272de4ea2
4 changed files with 6 additions and 6 deletions

View File

@@ -1426,7 +1426,7 @@ static int mov_write_packet(AVFormatContext *s, AVPacket *pkt)
if (mov->mdat_written == 0) {
mov_write_mdat_tag(pb, mov);
mov->mdat_written = 1;
mov->time = s->timestamp;
mov->time = s->timestamp + 0x7C25B080; //1970 based -> 1904 based
}
trk->cluster[cl][id].pos = url_ftell(pb);