@@ -484,7 +484,7 @@ GF_Err hdlr_dump(GF_Box *a, FILE * trace)
484484{
485485 GF_HandlerBox * p = (GF_HandlerBox * )a ;
486486 gf_isom_box_dump_start (a , "HandlerBox" , trace );
487- if (p -> nameUTF8 && (u32 ) p -> nameUTF8 [0 ] == strlen (p -> nameUTF8 + 1 ) ) {
487+ if (p -> nameUTF8 && (u32 ) p -> nameUTF8 [0 ] == strlen (p -> nameUTF8 ) - 1 ) {
488488 fprintf (trace , "hdlrType=\"%s\" Name=\"%s\" " , gf_4cc_to_str (p -> handlerType ), p -> nameUTF8 + 1 );
489489 } else {
490490 fprintf (trace , "hdlrType=\"%s\" Name=\"%s\" " , gf_4cc_to_str (p -> handlerType ), p -> nameUTF8 );
@@ -4157,9 +4157,9 @@ static void oinf_entry_dump(GF_OperatingPointsInformation *ptr, FILE * trace)
41574157 fprintf (trace , " maxPicWidth=\"%u\" maxPicHeight=\"%u\"" , op -> maxPicWidth , op -> maxPicHeight );
41584158 fprintf (trace , " maxChromaFormat=\"%u\" maxBitDepth=\"%u\"" , op -> maxChromaFormat , op -> maxBitDepth );
41594159 fprintf (trace , " frame_rate_info_flag=\"%u\" bit_rate_info_flag=\"%u\"" , op -> frame_rate_info_flag , op -> bit_rate_info_flag );
4160- if (op -> frame_rate_info_flag )
4160+ if (op -> frame_rate_info_flag )
41614161 fprintf (trace , " avgFrameRate=\"%u\" constantFrameRate=\"%u\"" , op -> avgFrameRate , op -> constantFrameRate );
4162- if (op -> bit_rate_info_flag )
4162+ if (op -> bit_rate_info_flag )
41634163 fprintf (trace , " maxBitRate=\"%u\" avgBitRate=\"%u\"" , op -> maxBitRate , op -> avgBitRate );
41644164 fprintf (trace , "/>\n" );
41654165 }
@@ -4261,14 +4261,14 @@ static void nalm_dump(FILE * trace, char *data, u32 data_size)
42614261 fprintf (trace , "</NALUMap>\n" );
42624262 return ;
42634263 }
4264-
4264+
42654265 bs = gf_bs_new (data , data_size , GF_BITSTREAM_READ );
42664266 gf_bs_read_int (bs , 6 );
42674267 large_size = gf_bs_read_int (bs , 1 );
42684268 rle = gf_bs_read_int (bs , 1 );
42694269 entry_count = gf_bs_read_int (bs , large_size ? 16 : 8 );
42704270 fprintf (trace , "<NALUMap rle=\"%d\" large_size=\"%d\">\n" , rle , large_size );
4271-
4271+
42724272 while (entry_count ) {
42734273 u32 ID ;
42744274 fprintf (trace , "<NALUMapEntry " );
@@ -4338,7 +4338,7 @@ GF_Err sgpd_dump(GF_Box *a, FILE * trace)
43384338 case GF_ISOM_SAMPLE_GROUP_TRIF :
43394339 trif_dump (trace , (char * ) ((GF_DefaultSampleGroupDescriptionEntry * )entry )-> data , ((GF_DefaultSampleGroupDescriptionEntry * )entry )-> length );
43404340 break ;
4341-
4341+
43424342 case GF_ISOM_SAMPLE_GROUP_NALM :
43434343 nalm_dump (trace , (char * ) ((GF_DefaultSampleGroupDescriptionEntry * )entry )-> data , ((GF_DefaultSampleGroupDescriptionEntry * )entry )-> length );
43444344 break ;
@@ -4507,7 +4507,7 @@ GF_Err tenc_dump(GF_Box *a, FILE * trace)
45074507 fprintf (trace , "\" KID=\"" );
45084508 }
45094509 dump_data_hex (trace , (char * ) ptr -> KID , 16 );
4510- if (ptr -> version )
4510+ if (ptr -> version )
45114511 fprintf (trace , "\" crypt_byte_block=\"%d\" skip_byte_block=\"%d" , ptr -> crypt_byte_block , ptr -> skip_byte_block );
45124512 fprintf (trace , "\">\n" );
45134513 gf_isom_box_dump_done ("TrackEncryptionBox" , a , trace );
0 commit comments