transcode: user ENC_FRAMERATE_BASE instead of fixed value
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 1 Feb 2012 10:17:56 +0000 (12:17 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 1 Feb 2012 10:18:50 +0000 (12:18 +0200)
modules/stream_out/transcode/video.c

index 15c4ef4..2475cd0 100644 (file)
@@ -813,7 +813,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 * 1000) + 0.5;
+        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_base = ENC_FRAMERATE_BASE;
     }