X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fstream_out%2Ftranscode%2Fvideo.c;h=5e07ca2ef92b86caa9e94efe0d085fd3140434f7;hb=1f79a984c2b83671f2910ba7081d9995facbcd72;hp=68850f2bc0307c7c95bdab9b081988ccdcf0fb5f;hpb=f3b30afc36fb9bac57a485f33c9c53b711e9e9ae;p=vlc diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c index 68850f2bc0..5e07ca2ef9 100644 --- a/modules/stream_out/transcode/video.c +++ b/modules/stream_out/transcode/video.c @@ -34,8 +34,8 @@ #include #include -#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; }