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

Francois Cartegnie git at videolan.org
Thu Jun 7 18:38:17 CEST 2018


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

packetizer: hxxx: remove bogus cast

(cherry picked from commit 7e965c1b30af945618a2af317b27ceda46ca9e7a)

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

 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 8c0f5ecc30..4f4a0b0a89 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