[vlc-commits] H264_nal: kill a warning

Jean-Baptiste Kempf git at videolan.org
Mon Oct 8 16:37:31 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct  8 16:37:20 2012 +0200| [26b84afd75fa1c4957a4cde0588514d18e05446a] | committer: Jean-Baptiste Kempf

H264_nal: kill a warning

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

 modules/codec/h264_nal.h    |    4 ++--
 modules/codec/omxil/omxil.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/codec/h264_nal.h b/modules/codec/h264_nal.h
index f116f0b..313fe13 100644
--- a/modules/codec/h264_nal.h
+++ b/modules/codec/h264_nal.h
@@ -98,7 +98,7 @@ static int convert_sps_pps( decoder_t *p_dec, const uint8_t *p_buf,
 
 /* Convert H.264 NAL format to annex b in-place */
 static void convert_h264_to_annexb( uint8_t *p_buf, uint32_t i_len,
-                                    int i_nal_size )
+                                    size_t i_nal_size )
 {
     if( i_nal_size < 3 || i_nal_size > 4 )
         return;
@@ -107,7 +107,7 @@ static void convert_h264_to_annexb( uint8_t *p_buf, uint32_t i_len,
     while( i_len >= i_nal_size )
     {
         uint32_t nal_len = 0;
-        for( int i = 0; i < i_nal_size; i++ ) {
+        for( unsigned int i = 0; i < i_nal_size; i++ ) {
             nal_len = (nal_len << 8) | p_buf[i];
             p_buf[i] = 0;
         }
diff --git a/modules/codec/omxil/omxil.h b/modules/codec/omxil/omxil.h
index 159d1d9..1beebe4 100644
--- a/modules/codec/omxil/omxil.h
+++ b/modules/codec/omxil/omxil.h
@@ -102,7 +102,7 @@ struct decoder_sys_t
 
     date_t end_date;
 
-    int i_nal_size_length; /* Length of the NAL size field for H264 */
+    size_t i_nal_size_length; /* Length of the NAL size field for H264 */
     int b_use_pts;
 
 };



More information about the vlc-commits mailing list