@@ -454,7 +454,6 @@ int decodeSPS(Bitstream_t *bitstr, h264_sps_t *sps)
454
454
sps->vui_parameters_present_flag = read_bit (bitstr);
455
455
if (sps->vui_parameters_present_flag )
456
456
{
457
- // Decode VUI
458
457
sps->vui = decodeVUI (bitstr);
459
458
}
460
459
@@ -687,7 +686,7 @@ void printSPS(h264_sps_t *sps)
687
686
#if ENABLE_DEBUG
688
687
TRACE_INFO (PARAM, " > " BLD_GREEN " printSPS()" CLR_RESET);
689
688
690
- unsigned int i = 0 ;
689
+ unsigned i = 0 ;
691
690
692
691
// Check SPS structure
693
692
if (sps == NULL )
@@ -1144,7 +1143,7 @@ void printPPS(h264_pps_t *pps, h264_sps_t **sps_array)
1144
1143
#if ENABLE_DEBUG
1145
1144
TRACE_INFO (PARAM, " > " BLD_GREEN " printPPS()" CLR_RESET);
1146
1145
1147
- unsigned int i = 0 ;
1146
+ unsigned i = 0 ;
1148
1147
1149
1148
// Check PPS structure
1150
1149
if (pps == NULL )
@@ -1161,7 +1160,7 @@ void printPPS(h264_pps_t *pps, h264_sps_t **sps_array)
1161
1160
TRACE_1 (PARAM, " - num_slice_groups_minus1 = %i" , pps->num_slice_groups_minus1 );
1162
1161
if (pps->num_slice_groups_minus1 > 0 )
1163
1162
{
1164
- unsigned int iGroup = 0 ;
1163
+ unsigned iGroup = 0 ;
1165
1164
TRACE_1 (PARAM, " - slice_group_map_type = %i" , pps->slice_group_map_type );
1166
1165
if (pps->slice_group_map_type == 0 )
1167
1166
{
@@ -1399,25 +1398,25 @@ int decodeSEI(Bitstream_t *bitstr, h264_sei_t *sei, int64_t size)
1399
1398
while (currentpos < (startpos + size))
1400
1399
{
1401
1400
// SEI payload header
1402
- unsigned int payloadType = 0 ;
1403
- unsigned int payloadSize = 0 ;
1401
+ unsigned payloadType = 0 ;
1402
+ unsigned payloadSize = 0 ;
1404
1403
1405
1404
while (next_bits (bitstr, 8 ) == 0xFF )
1406
1405
{
1407
- unsigned int ff_byte = read_bits (bitstr, 8 ); // equal to 0xFF
1406
+ /* unsigned ff_byte =*/ read_bits (bitstr, 8 ); // equal to 0xFF
1408
1407
payloadType += 255 ;
1409
1408
}
1410
1409
1411
- unsigned int last_payload_type_byte = read_bits (bitstr, 8 );
1410
+ unsigned last_payload_type_byte = read_bits (bitstr, 8 );
1412
1411
payloadType += last_payload_type_byte;
1413
1412
1414
1413
while (next_bits (bitstr, 8 ) == 0xFF )
1415
1414
{
1416
- unsigned int ff_byte = read_bits (bitstr, 8 ); // equal to 0xFF
1415
+ /* unsigned ff_byte =*/ read_bits (bitstr, 8 ); // equal to 0xFF
1417
1416
payloadSize += 255 ;
1418
1417
}
1419
1418
1420
- unsigned int last_payload_size_byte = read_bits (bitstr, 8 );
1419
+ unsigned last_payload_size_byte = read_bits (bitstr, 8 );
1421
1420
payloadSize += last_payload_size_byte;
1422
1421
1423
1422
// SEI payload
@@ -1684,7 +1683,7 @@ static int checkVUI(h264_vui_t *vui, h264_sps_t *sps)
1684
1683
{
1685
1684
if (vui->aspect_ratio_idc == 255 ) // 255 : Extended_SAR
1686
1685
{
1687
- if (is_prime (vui->sar_width ) == 0 )
1686
+ if (! is_prime (vui->sar_width ))
1688
1687
{
1689
1688
if (vui->sar_width != 0 )
1690
1689
{
@@ -1693,7 +1692,7 @@ static int checkVUI(h264_vui_t *vui, h264_sps_t *sps)
1693
1692
}
1694
1693
}
1695
1694
1696
- if (is_prime (vui->sar_height ) == 0 )
1695
+ if (! is_prime (vui->sar_height ))
1697
1696
{
1698
1697
if (vui->sar_height != 0 )
1699
1698
{
0 commit comments