[vlc-commits] transcode: user ENC_FRAMERATE_BASE instead of fixed value
Ilkka Ollakka
git at videolan.org
Wed Feb 1 22:42:37 CET 2012
vlc/vlc-2.0 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Feb 1 12:17:56 2012 +0200| [7a8513523f0237ebd33494d5be3283fcf4063b77] | committer: Jean-Baptiste Kempf
transcode: user ENC_FRAMERATE_BASE instead of fixed value
(cherry picked from commit 452cf1c4060c4917e546cae816918e0219e5dd31)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=7a8513523f0237ebd33494d5be3283fcf4063b77
---
modules/stream_out/transcode/video.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 44e7424..51dece7 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -841,7 +841,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;
}
More information about the vlc-commits
mailing list