[vlc-commits] theora: avoid simple->double->simple precision

Rémi Denis-Courmont git at videolan.org
Wed Aug 13 22:23:08 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 13 22:34:29 2014 +0300| [58cabb530917fa300d86fd27d97a72dbbc4033ed] | committer: Rémi Denis-Courmont

theora: avoid simple->double->simple precision

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

 modules/codec/theora.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/theora.c b/modules/codec/theora.c
index 89f1f7f..c2adc03 100644
--- a/modules/codec/theora.c
+++ b/modules/codec/theora.c
@@ -727,7 +727,7 @@ static int OpenEncoder( vlc_object_t *p_this )
     }
 
     p_sys->ti.target_bitrate = p_enc->fmt_out.i_bitrate;
-    p_sys->ti.quality = ((float)i_quality) * 6.3;
+    p_sys->ti.quality = ((float)i_quality) * 6.3f;
 
 
     p_sys->tcx = th_encode_alloc( &p_sys->ti );



More information about the vlc-commits mailing list