]> git.sesse.net Git - ffmpeg/commitdiff
hlsenc: use the correct AV_TIME_BASE macro
authorKanglin <kl222@126.com>
Sat, 29 Dec 2012 10:44:33 +0000 (11:44 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 29 Dec 2012 16:26:30 +0000 (17:26 +0100)
recording_time is in AV_TIME_BASE units.

libavformat/hlsenc.c

index 39e8df96ab44c2f3527e7a7418e2f844ec9e4288..71c0c3468156db1a24e83b147bf5423fc1dbf8bd 100644 (file)
@@ -187,7 +187,7 @@ static int hls_write_header(AVFormatContext *s)
 
     hls->number      = 0;
 
-    hls->recording_time = hls->time * 1000000;
+    hls->recording_time = hls->time * AV_TIME_BASE;
     hls->start_pts      = AV_NOPTS_VALUE;
 
     for (i = 0; i < s->nb_streams; i++)