From 0d8cc7a3b223fe23db87189f2410e624e672b66e Mon Sep 17 00:00:00 2001 From: Kanglin Date: Sat, 29 Dec 2012 11:44:33 +0100 Subject: hlsenc: use the correct AV_TIME_BASE macro recording_time is in AV_TIME_BASE units. --- libavformat/hlsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 39e8df96ab..71c0c34681 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -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++) -- cgit v1.2.3