Browse Source

hlsenc: use the correct AV_TIME_BASE macro

recording_time is in AV_TIME_BASE units.
tags/n1.1
Kanglin Luca Barbato 12 years ago
parent
commit
0d8cc7a3b2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/hlsenc.c

+ 1
- 1
libavformat/hlsenc.c View File

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


Loading…
Cancel
Save