Commit 26b84afd authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

H264_nal: kill a warning

parent 56020daa
...@@ -98,7 +98,7 @@ static int convert_sps_pps( decoder_t *p_dec, const uint8_t *p_buf, ...@@ -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 */ /* Convert H.264 NAL format to annex b in-place */
static void convert_h264_to_annexb( uint8_t *p_buf, uint32_t i_len, 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 ) if( i_nal_size < 3 || i_nal_size > 4 )
return; return;
...@@ -107,7 +107,7 @@ static void convert_h264_to_annexb( uint8_t *p_buf, uint32_t i_len, ...@@ -107,7 +107,7 @@ static void convert_h264_to_annexb( uint8_t *p_buf, uint32_t i_len,
while( i_len >= i_nal_size ) while( i_len >= i_nal_size )
{ {
uint32_t nal_len = 0; 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]; nal_len = (nal_len << 8) | p_buf[i];
p_buf[i] = 0; p_buf[i] = 0;
} }
......
...@@ -102,7 +102,7 @@ struct decoder_sys_t ...@@ -102,7 +102,7 @@ struct decoder_sys_t
date_t end_date; 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; int b_use_pts;
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment