[vlc-devel] commit: id3tag: kill a warning about casting (Jean-Baptiste Kempf )

git version control git at videolan.org
Fri Aug 21 17:51:16 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Aug 21 17:50:50 2009 +0200| [be54c4d26c82c659d1625aa6886851821117f84a] | committer: Jean-Baptiste Kempf 

id3tag: kill a warning about casting

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

 modules/meta_engine/id3tag.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/meta_engine/id3tag.c b/modules/meta_engine/id3tag.c
index 78a85ce..186e6cc 100644
--- a/modules/meta_engine/id3tag.c
+++ b/modules/meta_engine/id3tag.c
@@ -136,7 +136,8 @@ static void ParseID3Tag( demux_t *p_demux, const uint8_t *p_data, int i_size )
             while( i_data >= 4 )
             {
                 const unsigned int i_peak_size = p_data[3];
-                const float f_gain = (float)GetWBE( &p_data[1] ) / 512.0;
+                float f_temp = GetWBE( &p_data[1] );
+                const float f_gain = f_temp / 512.0;
                 char psz_value[32];
 
                 if( i_data < i_peak_size + 4 )




More information about the vlc-devel mailing list