[FFmpeg-cvslog] avformat/hdsenc: Change duration from single to to double precision
Michael Niedermayer
git at videolan.org
Mon Jun 8 00:35:59 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun 8 00:22:06 2015 +0200| [7856afef524da4eb93e1c823f9cdcd6a2badb3fe] | committer: Michael Niedermayer
avformat/hdsenc: Change duration from single to to double precision
This slightly improves precision
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7856afef524da4eb93e1c823f9cdcd6a2badb3fe
---
libavformat/hdsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c
index 48810a9..575cc20 100644
--- a/libavformat/hdsenc.c
+++ b/libavformat/hdsenc.c
@@ -162,7 +162,7 @@ static int write_manifest(AVFormatContext *s, int final)
AVIOContext *out;
char filename[1024], temp_filename[1024];
int ret, i;
- float duration = 0;
+ double duration = 0;
if (c->nb_streams > 0)
duration = c->streams[0].last_ts * av_q2d(s->streams[0]->time_base);
More information about the ffmpeg-cvslog
mailing list