[vlc-commits] theora: Display the frame rate as a fraction.

Hugo Beauzée-Luyssen git at videolan.org
Wed Nov 22 16:01:14 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Nov 22 16:00:41 2017 +0100| [162fbc7401a7372f32e543211d41a4954dac375d] | committer: Hugo Beauzée-Luyssen

theora: Display the frame rate as a fraction.

Fix a potential FPE CID #1048728

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=162fbc7401a7372f32e543211d41a4954dac375d
---

 modules/codec/theora.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/theora.c b/modules/codec/theora.c
index 14401263f4..d48edaab47 100644
--- a/modules/codec/theora.c
+++ b/modules/codec/theora.c
@@ -332,10 +332,10 @@ static int ProcessHeaders( decoder_t *p_dec )
         p_dec->fmt_out.video.i_frame_rate_base = p_sys->ti.fps_denominator;
     }
 
-    msg_Dbg( p_dec, "%dx%d %.02f fps video, frame content "
+    msg_Dbg( p_dec, "%dx%d %u/%u fps video, frame content "
              "is %dx%d with offset (%d,%d)",
              p_sys->ti.frame_width, p_sys->ti.frame_height,
-             (double)p_sys->ti.fps_numerator/p_sys->ti.fps_denominator,
+             p_sys->ti.fps_numerator, p_sys->ti.fps_denominator,
              p_sys->ti.pic_width, p_sys->ti.pic_height,
              p_sys->ti.pic_x, p_sys->ti.pic_y );
 



More information about the vlc-commits mailing list