Commit 0d8cc7a3 authored by Kanglin's avatar Kanglin Committed by Luca Barbato

hlsenc: use the correct AV_TIME_BASE macro

recording_time is in AV_TIME_BASE units.
parent 0448f26c
...@@ -187,7 +187,7 @@ static int hls_write_header(AVFormatContext *s) ...@@ -187,7 +187,7 @@ static int hls_write_header(AVFormatContext *s)
hls->number = 0; hls->number = 0;
hls->recording_time = hls->time * 1000000; hls->recording_time = hls->time * AV_TIME_BASE;
hls->start_pts = AV_NOPTS_VALUE; hls->start_pts = AV_NOPTS_VALUE;
for (i = 0; i < s->nb_streams; i++) for (i = 0; i < s->nb_streams; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment