[FFmpeg-devel] [PATCH] Write correct creation time of new ASF
Vadim Belov
vadim.belov at gmail.com
Sun Dec 27 22:58:53 CET 2015
---
libavformat/asfenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index 32b726b..9bb439a 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -428,7 +428,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size,
hpos = put_header(pb, &ff_asf_file_header);
ff_put_guid(pb, &ff_asf_my_guid);
avio_wl64(pb, file_size);
- file_time = 0;
+ file_time = time(NULL);
avio_wl64(pb, unix_to_file_time(file_time));
avio_wl64(pb, asf->nb_packets); /* number of packets */
avio_wl64(pb, duration); /* end time stamp (in 100ns units) */
--
2.6.4.windows.1
More information about the ffmpeg-devel
mailing list