hlsenc: use the correct AV_TIME_BASE macro

recording_time is in AV_TIME_BASE units.
This commit is contained in:
Kanglin 2012-12-29 11:44:33 +01:00 committed by Luca Barbato
parent 0448f26c97
commit 0d8cc7a3b2

View 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++)