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 39e8df9..71c0c34 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++)