[vlc-commits] packetizer: hxxx: use proper type for nal size

Francois Cartegnie git at videolan.org
Thu Jun 7 18:36:59 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jun  7 18:29:46 2018 +0200| [45ab1588043bbdd9279ee8a7c785bed5c1503620] | committer: Francois Cartegnie

packetizer: hxxx: use proper type for nal size

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

 modules/packetizer/hxxx_nal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/hxxx_nal.h b/modules/packetizer/hxxx_nal.h
index 87d038f355..69d6c8420c 100644
--- a/modules/packetizer/hxxx_nal.h
+++ b/modules/packetizer/hxxx_nal.h
@@ -280,7 +280,7 @@ static inline bool hxxx_iterate_next( hxxx_iterator_ctx_t *p_ctx, const uint8_t
     if( p_ctx->p_tail - p_ctx->p_head < p_ctx->i_nal_length_size )
         return false;
 
-    size_t i_nal_size = 0;
+    uint32_t i_nal_size = 0;
     for( uint8_t i=0; i < p_ctx->i_nal_length_size ; i++ )
         i_nal_size = (i_nal_size << 8) | *p_ctx->p_head++;
 



More information about the vlc-commits mailing list