[FFmpeg-cvslog] hlsenc: use the correct AV_TIME_BASE macro
Kanglin
git at videolan.org
Sun Dec 30 14:21:30 CET 2012
ffmpeg | branch: master | Kanglin <kl222 at 126.com> | Sat Dec 29 11:44:33 2012 +0100| [0d8cc7a3b223fe23db87189f2410e624e672b66e] | committer: Luca Barbato
hlsenc: use the correct AV_TIME_BASE macro
recording_time is in AV_TIME_BASE units.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0d8cc7a3b223fe23db87189f2410e624e672b66e
---
libavformat/hlsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 39e8df9..71c0c34 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++)
More information about the ffmpeg-cvslog
mailing list