[vlc-commits] hxx: fix signedness warning

Rémi Denis-Courmont git at videolan.org
Sat Jul 13 11:53:18 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jul 13 11:51:01 2019 +0300| [d461d5c24da598aeac15534e74bbfab937e62538] | committer: Rémi Denis-Courmont

hxx: fix signedness warning

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

 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 81ef497f49..b972c52fbb 100644
--- a/modules/packetizer/hxxx_nal.h
+++ b/modules/packetizer/hxxx_nal.h
@@ -85,7 +85,7 @@ static inline bool hxxx_iterate_next( hxxx_iterator_ctx_t *p_ctx, const uint8_t
     for( uint8_t i=0; i < p_ctx->i_nal_length_size ; i++ )
         i_nal_size = (i_nal_size << 8) | *p_ctx->p_head++;
 
-    if( i_nal_size > p_ctx->p_tail - p_ctx->p_head )
+    if( i_nal_size > (size_t)(p_ctx->p_tail - p_ctx->p_head) )
         return false;
 
     *pp_start = p_ctx->p_head;



More information about the vlc-commits mailing list