[vlc-commits] packetizer: hxxx: remove bogus cast

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


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jun  7 18:27:07 2018 +0200| [7e965c1b30af945618a2af317b27ceda46ca9e7a] | committer: Francois Cartegnie

packetizer: hxxx: remove bogus cast

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

 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 89f563ffc8..87d038f355 100644
--- a/modules/packetizer/hxxx_nal.h
+++ b/modules/packetizer/hxxx_nal.h
@@ -284,7 +284,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( (ptrdiff_t) i_nal_size > p_ctx->p_tail - p_ctx->p_head )
+    if( i_nal_size > p_ctx->p_tail - p_ctx->p_head )
         return false;
 
     *pp_start = p_ctx->p_head;



More information about the vlc-commits mailing list