[vlc-commits] transcode: use 1000 as frame rate base and don't try to do any rounding
Ilkka Ollakka
git at videolan.org
Tue Jun 18 20:18:38 CEST 2013
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Tue Jun 11 19:44:01 2013 +0300| [1f79a984c2b83671f2910ba7081d9995facbcd72] | committer: Ilkka Ollakka
transcode: use 1000 as frame rate base and don't try to do any rounding
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f79a984c2b83671f2910ba7081d9995facbcd72
---
modules/stream_out/transcode/video.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 68850f2..5e07ca2 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -34,8 +34,8 @@
#include <vlc_spu.h>
#include <vlc_modules.h>
-#define ENC_FRAMERATE (25 * 1001 + .5)
-#define ENC_FRAMERATE_BASE 1001
+#define ENC_FRAMERATE (25 * 1000)
+#define ENC_FRAMERATE_BASE 1000
struct decoder_owner_sys_t
{
@@ -903,7 +903,7 @@ bool transcode_video_add( sout_stream_t *p_stream, es_format_t *p_fmt,
if( p_sys->f_fps > 0 )
{
- id->p_encoder->fmt_out.video.i_frame_rate = (p_sys->f_fps * ENC_FRAMERATE_BASE) + 0.5;
+ id->p_encoder->fmt_out.video.i_frame_rate = (p_sys->f_fps * ENC_FRAMERATE_BASE);
id->p_encoder->fmt_out.video.i_frame_rate_base = ENC_FRAMERATE_BASE;
}
More information about the vlc-commits
mailing list