libmediainfo-24.11-1.fc42

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Archive/File_Iso9660.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Iso9660::Primary_Volume_Descriptor2()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Archive/File_Iso9660.cpp:292:12: warning[-Wunused-variable]: unused variable ‘Volume_Space_Size’
#  292 |     int32u Volume_Space_Size, Location_Of_Path_Table;
#      |            ^~~~~~~~~~~~~~~~~
#  290|       //Parsing

#  291|       Ztring VolumeIdentifier;

#  292|->     int32u Volume_Space_Size, Location_Of_Path_Table;

#  293|       int8u VolumeIdentifier_Size;

#  294|       Skip_L4(                                                    "Volume Descriptor Sequence Number");


Error: COMPILER_WARNING (CWE-563): [#def2]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Archive/File_Iso9660.cpp:292:31: warning[-Wunused-variable]: unused variable ‘Location_Of_Path_Table’
#  292 |     int32u Volume_Space_Size, Location_Of_Path_Table;
#      |                               ^~~~~~~~~~~~~~~~~~~~~~
#  290|       //Parsing

#  291|       Ztring VolumeIdentifier;

#  292|->     int32u Volume_Space_Size, Location_Of_Path_Table;

#  293|       int8u VolumeIdentifier_Size;

#  294|       Skip_L4(                                                    "Volume Descriptor Sequence Number");


Error: COMPILER_WARNING (CWE-195): [#def3]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_GeneralAudio.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Aac::payload(size_t)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_GeneralAudio.cpp:3127:54: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
# 3127 |             Skip_BS(Data_BS_Remain()-(BitsNotIncluded!=-1?BitsNotIncluded:0), "payload");
#      |                                       ~~~~~~~~~~~~~~~^~~~
# 3125|           #endif //MEDIAINFO_TRACE || MEDIAINFO_CONFORMANCE

# 3126|           default:

# 3127|->             Skip_BS(Data_BS_Remain()-(BitsNotIncluded!=-1?BitsNotIncluded:0), "payload");

# 3128|               Frame_Count_Valid=Frame_Count;

# 3129|       }


Error: COMPILER_WARNING (CWE-483): [#def4]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_GeneralAudio.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Aac::extension_payload(size_t, ZenLib::int8u)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_GeneralAudio.cpp:3900:25: warning[-Wmisleading-indentation]: this ‘while’ clause does not guard...
# 3900 |                         while (Data_BS_Remain()>End)
#      |                         ^~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.h:19: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac.h:20: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_GeneralAudio.cpp:24: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze.h:559:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’
#  559 |     #define Param_Info1(_A) Param_Info(_A)
#      |                             ^~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_GeneralAudio.cpp:3901:82: note: in expansion of macro ‘Param_Info1’
# 3901 |                             Skip_S1(8,                          "fill_byte[i]"); Param_Info1("must be 10100101");
#      |                                                                                  ^~~~~~~~~~~
# 3898|                       {

# 3899|                           Element_Begin1("fill_byte");

# 3900|->                         while (Data_BS_Remain()>End)

# 3901|                               Skip_S1(8,                          "fill_byte[i]"); Param_Info1("must be 10100101");

# 3902|                           Element_End0();


Error: COMPILER_WARNING (CWE-195): [#def5]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_Main.cpp: scope_hint: In function ‘std::string MediaInfoLib::Aac_ChannelLayout_GetString(const Aac_OutputChannel*, size_t)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_Main.cpp:393:20: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
#  393 |     for (int i=0; i< OutputChannels_Size; i++)
#      |                   ~^~~~~~~~~~~~~~~~~~~~~
#  391|       // Build the string

#  392|       string Value;

#  393|->     for (int i=0; i< OutputChannels_Size; i++)

#  394|       {

#  395|           if (OutputChannels[i]<Aac_OutputChannelPosition_Size)


Error: COMPILER_WARNING (CWE-195): [#def6]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_Main.cpp: scope_hint: In function ‘std::string MediaInfoLib::Aac_ChannelMode_GetString(const Aac_OutputChannel*, size_t)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_Main.cpp:496:20: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
#  496 |     for (int i=0; i<OutputChannels_Size; i++)
#      |                   ~^~~~~~~~~~~~~~~~~~~~
#  494|       int8u ChannelModes[Aac_ChannelMode_Max+1];

#  495|       memset(ChannelModes, 0, Aac_ChannelMode_Max+1);

#  496|->     for (int i=0; i<OutputChannels_Size; i++)

#  497|       {

#  498|           if (OutputChannels[i]>=Aac_OutputChannelPosition_Size)


Error: COMPILER_WARNING (CWE-823): [#def7]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_Main.cpp:501:59: warning[-Wchar-subscripts]: array subscript has type ‘char’
#  501 |             ChannelModes[Aac_ChannelMode[OutputChannels[i]]]++;
#      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
#  499|               ChannelModes[Aac_ChannelMode_Max]++;

#  500|           else

#  501|->             ChannelModes[Aac_ChannelMode[OutputChannels[i]]]++;

#  502|       }

#  503|   


Error: COMPILER_WARNING: [#def8]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:215:20: warning: ‘AC3_roomtyp’ initialized and declared ‘extern’
#  215 | extern const char* AC3_roomtyp[]=
#      |                    ^~~~~~~~~~~
#  213|   

#  214|   //---------------------------------------------------------------------------

#  215|-> extern const char* AC3_roomtyp[]=

#  216|   {

#  217|       "Large",


Error: COMPILER_WARNING: [#def9]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:223:20: warning: ‘AC3_dmixmod’ initialized and declared ‘extern’
#  223 | extern const char* AC3_dmixmod[]=
#      |                    ^~~~~~~~~~~
#  221|   

#  222|   //---------------------------------------------------------------------------

#  223|-> extern const char* AC3_dmixmod[]=

#  224|   {

#  225|       "Lt/Rt",


Error: COMPILER_WARNING (CWE-563): [#def10]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp: scope_hint: In function ‘bool MediaInfoLib::Ac3_EMDF_Test(const ZenLib::BitStream_Fast&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:923:12: warning[-Wunused-variable]: unused variable ‘End’
#  923 |     size_t End=Search2.Remain()-Size;
#      |            ^~~
#  921|       if (Size>Search2.Remain())

#  922|           return false;

#  923|->     size_t End=Search2.Remain()-Size;

#  924|       if (Search2.Get1(2)) //emdf_version

#  925|           return false;


Error: COMPILER_WARNING (CWE-483): [#def11]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Ac3::Core_Frame()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:2405:13: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
# 2405 |             if (acmod==2)
#      |             ^~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.h:13: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:139: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze.h:559:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
#  559 |     #define Param_Info1(_A) Param_Info(_A)
#      |                             ^~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:2406:103: note: in expansion of macro ‘Param_Info1’
# 2406 |                 Get_S1 (2, dsurmod,                                 "dsurmod - Dolby Surround Mode"); Param_Info1(AC3_Surround[dsurmod]);
#      |                                                                                                       ^~~~~~~~~~~
# 2403|               if (acmod&4) //back present

# 2404|                   Get_S1 (2, surmixlev,                               "surmixlev - Surround Mix Level");

# 2405|->             if (acmod==2)

# 2406|                   Get_S1 (2, dsurmod,                                 "dsurmod - Dolby Surround Mode"); Param_Info1(AC3_Surround[dsurmod]);

# 2407|               Get_SB (   lfeon,                                       "lfeon - Low Frequency Effects");


Error: COMPILER_WARNING (CWE-563): [#def12]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:2534:20: warning[-Wunused-variable]: unused variable ‘Bits_Begin’
# 2534 |             size_t Bits_Begin=Data_BS_Remain();
#      |                    ^~~~~~~~~~
# 2532|           Element_Begin1("bsi");

# 2533|               BS_Begin();

# 2534|->             size_t Bits_Begin=Data_BS_Remain();

# 2535|               Get_S1 ( 2, strmtyp,                                    "strmtyp");

# 2536|               Get_S1 ( 3, substreamid,                                "substreamid");


Error: COMPILER_WARNING (CWE-195): [#def13]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:2742:30: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
# 2742 |                 if (addbsil+1!=addbsi_Buffer_Size)
#      |                     ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
# 2740|                   int8u addbsil;

# 2741|                   Get_S1 (6, addbsil,                                 "addbsil");

# 2742|->                 if (addbsil+1!=addbsi_Buffer_Size)

# 2743|                   {

# 2744|                       delete[] addbsi_Buffer;


Error: COMPILER_WARNING (CWE-563): [#def14]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Ac3::emdf_container()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:3987:12: warning[-Wunused-variable]: unused variable ‘Start’
# 3987 |     size_t Start = Data_BS_Remain();
#      |            ^~~~~
# 3985|   void File_Ac3::emdf_container()

# 3986|   {

# 3987|->     size_t Start = Data_BS_Remain();

# 3988|       int32u version, key_id;

# 3989|       Element_Begin1("emdf_container");


Error: COMPILER_WARNING (CWE-563): [#def15]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Ac3::HD()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:4415:35: warning[-Wunused-variable]: unused variable ‘Unknown’
# 4415 |                     unsigned char Unknown = 0;
#      |                                   ^~~~~~~
# 4413|                   {

# 4414|                       unsigned char Extend = 0;

# 4415|->                     unsigned char Unknown = 0;

# 4416|                       bool HasContent = false;

# 4417|                       BS_Begin();


Error: COMPILER_WARNING (CWE-563): [#def16]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:4416:26: warning[-Wunused-variable]: unused variable ‘HasContent’
# 4416 |                     bool HasContent = false;
#      |                          ^~~~~~~~~~
# 4414|                       unsigned char Extend = 0;

# 4415|                       unsigned char Unknown = 0;

# 4416|->                     bool HasContent = false;

# 4417|                       BS_Begin();

# 4418|                       Get_S1( 4, Extend,                          "extra_channel_meaning_length");


Error: COMPILER_WARNING (CWE-1164): [#def17]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: At global scope
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:755:15: warning[-Wunused-function]: ‘std::string MediaInfoLib::AC4_nonstd_2_desc(ZenLib::int32u)’ defined but not used
#  755 | static string AC4_nonstd_2_desc(int32u nonstd_bed_channel_assignment_mask)
#      |               ^~~~~~~~~~~~~~~~~
#  753|       1,

#  754|   };

#  755|-> static string AC4_nonstd_2_desc(int32u nonstd_bed_channel_assignment_mask)

#  756|   {

#  757|       string ToReturn="0.0.0";


Error: COMPILER_WARNING (CWE-563): [#def18]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:1181:10: warning[-Wunused-but-set-variable]: variable ‘IsUsingDac4’ set but not used
# 1181 |     bool IsUsingDac4;
#      |          ^~~~~~~~~~~
# 1179|   

# 1180|       //If no frame, use dac4 content

# 1181|->     bool IsUsingDac4;

# 1182|       if (Presentations.empty() && Groups.empty() && AudioSubstreams.empty())

# 1183|       {


Error: COMPILER_WARNING (CWE-563): [#def19]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:1692:14: warning[-Wunused-but-set-variable]: variable ‘b_channel_coded’ set but not used
# 1692 |         bool b_channel_coded=false;
#      |              ^~~~~~~~~~~~~~~
# 1690|   

# 1691|           //Info from group

# 1692|->         bool b_channel_coded=false;

# 1693|           bool b_de_data_present=false;

# 1694|           int8u de_max_gain, de_channel_config;


Error: COMPILER_WARNING (CWE-563): [#def20]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Ac4::Streams_Fill()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:1705:40: warning[-Wunused-variable]: unused variable ‘D’
# 1705 |                         const de_info& D=Substream_Info->second.DeInfo;
#      |                                        ^
# 1703|                           //Channel based

# 1704|                           b_channel_coded=true;

# 1705|->                         const de_info& D=Substream_Info->second.DeInfo;

# 1706|                           //b_de_data_present=D.b_de_data_present;

# 1707|                           //if (b_de_data_present)


Error: CPPCHECK_WARNING (CWE-457): [#def21]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:1847: warning[uninitvar]: Uninitialized variable: Buffer_Offset_Current
# 1845|           Buffer_Offset++;

# 1846|       }

# 1847|->     Buffer_Offset=Buffer_Offset_Current;

# 1848|   

# 1849|       //Parsing last bytes if needed


Error: COMPILER_WARNING (CWE-457): [#def22]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘MediaInfoLib::File_Ac4::Synchronize()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:1850:22: warning[-Wmaybe-uninitialized]: ‘Buffer_Offset_Current’ may be used uninitialized
# 1850 |     if (Buffer_Offset+4>Buffer_Size)
#      |         ~~~~~~~~~~~~~^~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:1823:12: note: ‘Buffer_Offset_Current’ was declared here
# 1823 |     size_t Buffer_Offset_Current;
#      |            ^~~~~~~~~~~~~~~~~~~~~
# 1848|   

# 1849|       //Parsing last bytes if needed

# 1850|->     if (Buffer_Offset+4>Buffer_Size)

# 1851|       {

# 1852|           while (Buffer_Offset+2<=Buffer_Size && (BigEndian2int16u(Buffer+Buffer_Offset)>>1)!=(0xAC40>>1))


Error: COMPILER_WARNING (CWE-563): [#def23]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Ac4::oamd_common_data()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:3391:12: warning[-Wunused-variable]: unused variable ‘bits_used’
# 3391 |     int16u bits_used;
#      |            ^~~~~~~~~
# 3389|   {

# 3390|       int8u add_data_bytes;

# 3391|->     int16u bits_used;

# 3392|   

# 3393|       Element_Begin1(                                             "oamd_common_data");


Error: COMPILER_WARNING (CWE-457): [#def24]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘MediaInfoLib::File_Ac4::ac4_substream(unsigned long)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:3478:12: warning[-Wmaybe-uninitialized]: ‘Save_Element_Size’ may be used uninitialized
# 3478 |     int64u Save_Element_Size;
#      |            ^~~~~~~~~~~~~~~~~
# 3476|       AudioSubstream.Buffer_Index=0;

# 3477|   

# 3478|->     int64u Save_Element_Size;

# 3479|       if (AudioSubstream.Buffer.Data)

# 3480|       {


Error: COMPILER_WARNING (CWE-563): [#def25]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Ac4::metadata(audio_substream&, size_t)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:3773:19: warning[-Wunused-variable]: unused variable ‘extSizeBits’
# 3773 |             int8u extSizeBits;
#      |                   ^~~~~~~~~~~
# 3771|               Element_Begin1("umd_payload");

# 3772|               int32u umd_payload_id,  umd_payload_size;

# 3773|->             int8u extSizeBits;

# 3774|               bool b_smpoffst, b_discard_unknown_payload;

# 3775|               Get_S4 (5, umd_payload_id,                          "umd_payload_id");


Error: CPPCHECK_WARNING (CWE-457): [#def26]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:3810: error[legacyUninitvar]: Uninitialized variable: b_payload_frame_aligned
# 3808|                       TEST_SB_END();

# 3809|                   }

# 3810|->                 if (b_smpoffst || b_payload_frame_aligned)

# 3811|                   {

# 3812|                       Skip_S1(5,                                  "priority");


Error: COMPILER_WARNING (CWE-563): [#def27]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Ac4::further_loudness_info(loudness_info&, bool, bool)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:4641:10: warning[-Wunused-variable]: unused variable ‘b_loudcorr_type’
# 4641 |     bool b_loudcorr_type;
#      |          ^~~~~~~~~~~~~~~
# 4639|   void File_Ac4::further_loudness_info(loudness_info& L, bool sus_ver, bool b_presentation_ldn)

# 4640|   {

# 4641|->     bool b_loudcorr_type;

# 4642|       Element_Begin1("further_loudness_info");

# 4643|       if (b_presentation_ldn || !sus_ver)


Error: COMPILER_WARNING (CWE-483): [#def28]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Ac4::ac4_presentation_v1_dsi(presentation&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:4965:9: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
# 4965 |         if (byte_align)
#      |         ^~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:4967:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
# 4967 |             alternative_info();
#      |             ^~~~~~~~~~~~~~~~
# 4963|       TEST_SB_GET(P.b_alternative,                                "b_alternative");

# 4964|           size_t byte_align=Data_BS_Remain()%8;

# 4965|->         if (byte_align)

# 4966|               Skip_S1(byte_align,                                 "byte_align");

# 4967|               alternative_info();


Error: COMPILER_WARNING (CWE-665): [#def29]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.h:228:16: warning[-Wreorder]:   ‘ZenLib::int32u MediaInfoLib::File_Ac4::presentation::presentation_id’
#  228 |         int32u presentation_id;
#      |                ^~~~~~~~~~~~~~~
#  226|   

#  227|           int8u presentation_version;

#  228|->         int32u presentation_id;

#  229|           bool b_pres_ndot;

#  230|           bool b_alternative;


Error: COMPILER_WARNING (CWE-665): [#def30]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.h:231:14: warning[-Wreorder]:   ‘bool MediaInfoLib::File_Ac4::presentation::dolby_atmos_indicator’
#  231 |         bool dolby_atmos_indicator;
#      |              ^~~~~~~~~~~~~~~~~~~~~
#  229|           bool b_pres_ndot;

#  230|           bool b_alternative;

#  231|->         bool dolby_atmos_indicator;

#  232|           int8u substream_index;

#  233|           int8u presentation_config;


Error: COMPILER_WARNING (CWE-665): [#def31]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__MultipleParsing.cpp:189: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.h: scope_hint: In constructor ‘MediaInfoLib::File_Ac4::presentation::presentation()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.h:233:15: warning[-Wreorder]: ‘MediaInfoLib::File_Ac4::presentation::presentation_config’ will be initialized after
#  233 |         int8u presentation_config;
#      |               ^~~~~~~~~~~~~~~~~~~
#  231|           bool dolby_atmos_indicator;

#  232|           int8u substream_index;

#  233|->         int8u presentation_config;

#  234|           int8u n_substream_groups;

#  235|           int8u b_multi_pid_PresentAndValue;


Error: COMPILER_WARNING (CWE-665): [#def32]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.h:236:15: warning[-Wreorder]: ‘MediaInfoLib::File_Ac4::presentation::frame_rate_fraction_minus1’ will be initialized after
#  236 |         int8u frame_rate_fraction_minus1;
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  234|           int8u n_substream_groups;

#  235|           int8u b_multi_pid_PresentAndValue;

#  236|->         int8u frame_rate_fraction_minus1;

#  237|           loudness_info LoudnessInfo;

#  238|           drc_info DrcInfo;


Error: COMPILER_WARNING (CWE-665): [#def33]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.h:251:9: warning[-Wreorder]:   when initialized here
#  251 |         presentation() :
#      |         ^~~~~~~~~~~~
#  249|           string Language;

#  250|   

#  251|->         presentation() :

#  252|               presentation_config((int8u)-1),

#  253|               presentation_id((int32u)-1),


Error: COMPILER_WARNING (CWE-665): [#def34]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.h:290:15: warning[-Wreorder]:   ‘ZenLib::int8u MediaInfoLib::File_Ac4::group_substream::top_channels_present’
#  290 |         int8u top_channels_present;
#      |               ^~~~~~~~~~~~~~~~~~~~
#  288|           bool b_4_back_channels_present;

#  289|           bool b_centre_present;

#  290|->         int8u top_channels_present;

#  291|           int8u hsf_substream_index;

#  292|   


Error: COMPILER_WARNING (CWE-665): [#def35]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.h: scope_hint: In constructor ‘MediaInfoLib::File_Ac4::group_substream::group_substream()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.h:307:15: warning[-Wreorder]: ‘MediaInfoLib::File_Ac4::group_substream::immersive_stereo’ will be initialized after
#  307 |         int8u immersive_stereo;
#      |               ^~~~~~~~~~~~~~~~
#  305|           // Computed

#  306|           int8u ch_mode_core;

#  307|->         int8u immersive_stereo;

#  308|           int8u top_channel_pairs;

#  309|   


Error: COMPILER_WARNING (CWE-665): [#def36]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.h:310:9: warning[-Wreorder]:   when initialized here
#  310 |         group_substream() :
#      |         ^~~~~~~~~~~~~~~
#  308|           int8u top_channel_pairs;

#  309|   

#  310|->         group_substream() :

#  311|               substream_index((int8u)-1),

#  312|               sus_ver(false),


Error: COMPILER_WARNING (CWE-1164): [#def37]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: At global scope
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:107:16: warning[-Wunused-function]: ‘ZenLib::float32 MediaInfoLib::TimeCodeToFloat(std::string)’ defined but not used
#  107 | static float32 TimeCodeToFloat(string v)
#      |                ^~~~~~~~~~~~~~~
#  105|   }

#  106|   

#  107|-> static float32 TimeCodeToFloat(string v)

#  108|   {

#  109|       if (v.size() < 8 || v[2] != ':' || v[5] != ':')


Error: COMPILER_WARNING (CWE-195): [#def38]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘ZenLib::float32 MediaInfoLib::TimeCodeToFloat(std::string)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:137:14: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
#  137 |     while (i < v.size() && v[i] >= '0' && v[i] <= '9')
#      |            ~~^~~~~~~~~~
#  135|       int ValueF_Exponent = 0;

#  136|       const int Exponent_Max = 9;

#  137|->     while (i < v.size() && v[i] >= '0' && v[i] <= '9')

#  138|       {

#  139|           ValueF_Exponent++;


Error: COMPILER_WARNING (CWE-195): [#def39]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:147:11: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
#  147 |     if (i >= v.size() || v[i] != 'S')
#      |         ~~^~~~~~~~~~~
#  145|           i++;

#  146|       }

#  147|->     if (i >= v.size() || v[i] != 'S')

#  148|           return Value + (float32)ValueF / pow10(ValueF_Exponent <= Exponent_Max ? ValueF_Exponent : Exponent_Max);

#  149|       int32u SampleRate = 0;


Error: COMPILER_WARNING (CWE-195): [#def40]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:152:14: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
#  152 |     while (i < v.size() && v[i] >= '0' && v[i] <= '9')
#      |            ~~^~~~~~~~~~
#  150|       int SampleRate_Exponent = 0;

#  151|       i++;

#  152|->     while (i < v.size() && v[i] >= '0' && v[i] <= '9')

#  153|       {

#  154|           SampleRate_Exponent++;


Error: COMPILER_WARNING (CWE-682): [#def41]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: At global scope
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:1247:49: warning[-Wsizeof-array-div]: expression does not compute the number of elements in this array; element type is ‘MediaInfoLib::element_item’, not ‘MediaInfoLib::attribute_item’
# 1247 | static_assert(sizeof(audioTrackFormat_Elements) / sizeof(attribute_item) == audioTrackFormat_Element_Max, IncoherencyMessage);
#      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:1247:51: note: add parentheses around ‘sizeof (MediaInfoLib::attribute_item)’ to silence this warning
# 1247 | static_assert(sizeof(audioTrackFormat_Elements) / sizeof(attribute_item) == audioTrackFormat_Element_Max, IncoherencyMessage);
#      |                                                   ^~~~~~~~~~~~~~~~~~~~~~
#      |                                                   (                     )
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:1243:22: note: array ‘MediaInfoLib::audioTrackFormat_Elements’ declared here
# 1243 | static element_items audioTrackFormat_Elements =
#      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~
# 1245|       { "audioStreamFormatIDRef"                  , { 0, 7, 0, 1, 0, 0, 1, 0, 1, 1, 0 } },

# 1246|   };

# 1247|-> static_assert(sizeof(audioTrackFormat_Elements) / sizeof(attribute_item) == audioTrackFormat_Element_Max, IncoherencyMessage);

# 1248|   

# 1249|   static attribute_items audioStreamFormat_Attributes =


Error: COMPILER_WARNING (CWE-195): [#def42]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘std::set<std::__cxx11::basic_string<char> > MediaInfoLib::audioPackFormatID_2_audioChannelFormatIDRef(ZenLib::int16u)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:1978:19: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
# 1978 |         if (++Pos != SearchedPos) {
#      |             ~~~~~~^~~~~~~~~~~~~~
# 1976|               return {};

# 1977|           }

# 1978|->         if (++Pos != SearchedPos) {

# 1979|               i += Count;

# 1980|               continue;


Error: COMPILER_WARNING (CWE-195): [#def43]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In member function ‘void MediaInfoLib::Item_Struct::AddError(MediaInfoLib::error_Type, MediaInfoLib::item, size_t, const std::string&, MediaInfoLib::source)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:2178:79: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
# 2178 |         AddError(Error_Type, ':' + CraftName(item_Infos[Item_Type].Name) + (i != -1 ? to_string(i) : "") + NewValue, Source);
#      |                                                                             ~~^~~~~
# 2176|       }

# 2177|       void AddError(error_Type Error_Type, item Item_Type, size_t i, const string& NewValue, source Source = Source_ADM) {

# 2178|->         AddError(Error_Type, ':' + CraftName(item_Infos[Item_Type].Name) + (i != -1 ? to_string(i) : "") + NewValue, Source);

# 2179|       }

# 2180|       void AddError(error_Type Error_Type, size_t Item_Type, size_t i, const string& NewValue, source Source = Source_ADM) {


Error: COMPILER_WARNING (CWE-563): [#def44]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘std::string MediaInfoLib::Apply_Init(File__Analyze&, const char*, size_t, const Items_Struct&, ZenLib::Ztring)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:2215:24: warning[-Wunused-variable]: unused variable ‘audioProgramme’
# 2215 |     const Item_Struct& audioProgramme = audioProgramme_List.Items[i];
#      |                        ^~~~~~~~~~~~~~
# 2213|   

# 2214|   static string Apply_Init(File__Analyze& F, const char* Name, size_t i, const Items_Struct& audioProgramme_List, Ztring Summary) {

# 2215|->     const Item_Struct& audioProgramme = audioProgramme_List.Items[i];

# 2216|       string P = Name + to_string(i);

# 2217|       F.Fill(Stream_Audio, 0, P.c_str(), Summary.empty() ? __T("Yes") : Summary);


Error: COMPILER_WARNING (CWE-195): [#def45]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::Apply_SubStreams(File__Analyze&, const std::string&, Item_Struct&, size_t, Items_Struct&, bool)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:2234:17: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
# 2234 |         if (Pos == -1) {
#      |             ~~~~^~~~~
# 2232|               }

# 2233|           }

# 2234|->         if (Pos == -1) {

# 2235|               // Trying case insensitive, this is permitted by specs

# 2236|               auto Start = ID.rfind('_');


Error: COMPILER_WARNING (CWE-195): [#def46]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:2260:17: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
# 2260 |         if (Pos == -1) {
#      |             ~~~~^~~~~
# 2258|               }

# 2259|           }

# 2260|->         if (Pos == -1) {

# 2261|               auto LinkedTo_Pos = P_And_LinkedTo.find(" LinkedTo_TrackUID_Pos");

# 2262|               auto HasTransport = !F.Retrieve_Const(Stream_Audio, 0, "Transport0").empty();


Error: COMPILER_WARNING (CWE-563): [#def47]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::CheckErrors_formatLabelDefinition(file_adm_private*, item, size_t, const label_info&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:2821:17: warning[-Wunused-variable]: unused variable ‘Style_Info’
# 2821 |     const auto& Style_Info = Style_Infos[Style];
#      |                 ^~~~~~~~~~
# 2819|       const auto& Definition = Item.Attributes[label_Info.Definition_Pos];

# 2820|       const auto Style = label_Info.Label_Style;

# 2821|->     const auto& Style_Info = Style_Infos[Style];

# 2822|       const auto List = (Style == (style)-1) ? nullptr : Style_Infos[Style].formatDefinition_List;

# 2823|       const unsigned long List_Size = (Style == (style)-1) ? 0 : Style_Infos[Style].formatDefinition_Size;


Error: COMPILER_WARNING: [#def48]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::loudnessMetadata_Check(file_adm_private*, item)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3196:68: warning[-Wenum-compare]: enumerated mismatch in conditional expression: ‘MediaInfoLib::audioProgramme_Element’ vs ‘MediaInfoLib::audioContent_Element’
# 3196 |     size_t j = Programme.Elements[Item_Type == item_audioProgramme ? audioProgramme_loudnessMetadata : audioContent_loudnessMetadata].size() - 1;
#      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3194|   

# 3195|       size_t i = Programmes.size() - 1;

# 3196|->     size_t j = Programme.Elements[Item_Type == item_audioProgramme ? audioProgramme_loudnessMetadata : audioContent_loudnessMetadata].size() - 1;

# 3197|   

# 3198|       if (loudnessMetadata.Elements[loudnessMetadata_integratedLoudness].empty() && loudnessMetadata.Elements[loudnessMetadata_dialogueLoudness].empty())


Error: COMPILER_WARNING (CWE-563): [#def49]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::audioProgrammeReferenceScreen_Check(file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3210:11: warning[-Wunused-variable]: unused variable ‘ProgrammeReferenceScreen’
# 3210 |     auto& ProgrammeReferenceScreen = ProgrammeReferenceScreens.back();
#      |           ^~~~~~~~~~~~~~~~~~~~~~~~
# 3208|       auto& Programme = Programmes.back();

# 3209|       auto& ProgrammeReferenceScreens = Items[item_audioProgrammeReferenceScreen].Items;

# 3210|->     auto& ProgrammeReferenceScreen = ProgrammeReferenceScreens.back();

# 3211|   

# 3212|       size_t i = Programmes.size() - 1;


Error: COMPILER_WARNING (CWE-563): [#def50]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3212:12: warning[-Wunused-variable]: unused variable ‘i’
# 3212 |     size_t i = Programmes.size() - 1;
#      |            ^
# 3210|       auto& ProgrammeReferenceScreen = ProgrammeReferenceScreens.back();

# 3211|   

# 3212|->     size_t i = Programmes.size() - 1;

# 3213|       size_t j = Programme.Elements[audioProgramme_audioProgrammeReferenceScreen].size() - 1;

# 3214|   


Error: COMPILER_WARNING (CWE-563): [#def51]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3213:12: warning[-Wunused-variable]: unused variable ‘j’
# 3213 |     size_t j = Programme.Elements[audioProgramme_audioProgrammeReferenceScreen].size() - 1;
#      |            ^
# 3211|   

# 3212|       size_t i = Programmes.size() - 1;

# 3213|->     size_t j = Programme.Elements[audioProgramme_audioProgrammeReferenceScreen].size() - 1;

# 3214|   

# 3215|       MoveErrors(File_Adm_Private, item_audioProgrammeReferenceScreen);


Error: COMPILER_WARNING (CWE-563): [#def52]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3228:12: warning[-Wunused-variable]: unused variable ‘i’
# 3228 |     size_t i = Programmes.size() - 1;
#      |            ^
# 3226|       auto& screenWidth = screenWidths.back();

# 3227|   

# 3228|->     size_t i = Programmes.size() - 1;

# 3229|       size_t j = Programme.Elements[audioProgramme_audioProgrammeReferenceScreen].size() - 1;

# 3230|       size_t k = ProgrammeReferenceScreen.Elements[audioProgrammeReferenceScreen_screenWidth].size() - 1;


Error: COMPILER_WARNING (CWE-563): [#def53]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3229:12: warning[-Wunused-variable]: unused variable ‘j’
# 3229 |     size_t j = Programme.Elements[audioProgramme_audioProgrammeReferenceScreen].size() - 1;
#      |            ^
# 3227|   

# 3228|       size_t i = Programmes.size() - 1;

# 3229|->     size_t j = Programme.Elements[audioProgramme_audioProgrammeReferenceScreen].size() - 1;

# 3230|       size_t k = ProgrammeReferenceScreen.Elements[audioProgrammeReferenceScreen_screenWidth].size() - 1;

# 3231|   


Error: COMPILER_WARNING (CWE-563): [#def54]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3230:12: warning[-Wunused-variable]: unused variable ‘k’
# 3230 |     size_t k = ProgrammeReferenceScreen.Elements[audioProgrammeReferenceScreen_screenWidth].size() - 1;
#      |            ^
# 3228|       size_t i = Programmes.size() - 1;

# 3229|       size_t j = Programme.Elements[audioProgramme_audioProgrammeReferenceScreen].size() - 1;

# 3230|->     size_t k = ProgrammeReferenceScreen.Elements[audioProgrammeReferenceScreen_screenWidth].size() - 1;

# 3231|   

# 3232|       if (screenWidth.Attributes_Present[screenWidth_X]) {


Error: COMPILER_WARNING (CWE-195): [#def55]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::screenWidth_Check(file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3236:35: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 3236 |         if (End - Element.c_str() != Element.size()) {
#      |             ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
# 3234|           char* End;

# 3235|           auto Value = strtof(Element.c_str(), &End);

# 3236|->         if (End - Element.c_str() != Element.size()) {

# 3237|               screenWidth.AddError(Error, ":X:X attribute value \"" + Element + "\" is malformed");

# 3238|           }


Error: COMPILER_WARNING (CWE-563): [#def56]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::authoringInformation_Check(file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3251:11: warning[-Wunused-variable]: unused variable ‘authoringInformation’
# 3251 |     auto& authoringInformation = authoringInformations.back();
#      |           ^~~~~~~~~~~~~~~~~~~~
# 3249|       auto& Programme = Programmes.back();

# 3250|       auto& authoringInformations = Items[item_authoringInformation].Items;

# 3251|->     auto& authoringInformation = authoringInformations.back();

# 3252|   

# 3253|       size_t i = Programmes.size() - 1;


Error: COMPILER_WARNING (CWE-563): [#def57]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3253:12: warning[-Wunused-variable]: unused variable ‘i’
# 3253 |     size_t i = Programmes.size() - 1;
#      |            ^
# 3251|       auto& authoringInformation = authoringInformations.back();

# 3252|   

# 3253|->     size_t i = Programmes.size() - 1;

# 3254|       size_t j = Programme.Elements[audioProgramme_authoringInformation].size() - 1;

# 3255|   


Error: COMPILER_WARNING (CWE-563): [#def58]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3254:12: warning[-Wunused-variable]: unused variable ‘j’
# 3254 |     size_t j = Programme.Elements[audioProgramme_authoringInformation].size() - 1;
#      |            ^
# 3252|   

# 3253|       size_t i = Programmes.size() - 1;

# 3254|->     size_t j = Programme.Elements[audioProgramme_authoringInformation].size() - 1;

# 3255|   

# 3256|   


Error: COMPILER_WARNING (CWE-563): [#def59]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::audioProgramme_Check(file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3271:12: warning[-Wunused-variable]: unused variable ‘i’
# 3271 |     size_t i = Programmes.size() - 1;
#      |            ^
# 3269|       auto& Programme = Programmes.back();

# 3270|   

# 3271|->     size_t i = Programmes.size() - 1;

# 3272|   

# 3273|       CheckError_Language(File_Adm_Private, item_audioProgramme, audioProgramme_audioProgrammeLanguage);


Error: COMPILER_WARNING (CWE-563): [#def60]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::audioObjectInteraction_Check(file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3351:11: warning[-Wunused-variable]: unused variable ‘audioObjectInteraction’
# 3351 |     auto& audioObjectInteraction = audioObjectInteractions.back();
#      |           ^~~~~~~~~~~~~~~~~~~~~~
# 3349|       auto& audioObject = audioObjects.back();

# 3350|       auto& audioObjectInteractions = Items[item_audioObjectInteraction].Items;

# 3351|->     auto& audioObjectInteraction = audioObjectInteractions.back();

# 3352|   

# 3353|       size_t i = audioObjects.size() - 1;


Error: COMPILER_WARNING (CWE-563): [#def61]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3353:12: warning[-Wunused-variable]: unused variable ‘i’
# 3353 |     size_t i = audioObjects.size() - 1;
#      |            ^
# 3351|       auto& audioObjectInteraction = audioObjectInteractions.back();

# 3352|   

# 3353|->     size_t i = audioObjects.size() - 1;

# 3354|       size_t j = audioObject.Elements[audioObject_audioObjectInteraction].size() - 1;

# 3355|   


Error: COMPILER_WARNING (CWE-563): [#def62]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3354:12: warning[-Wunused-variable]: unused variable ‘j’
# 3354 |     size_t j = audioObject.Elements[audioObject_audioObjectInteraction].size() - 1;
#      |            ^
# 3352|   

# 3353|       size_t i = audioObjects.size() - 1;

# 3354|->     size_t j = audioObject.Elements[audioObject_audioObjectInteraction].size() - 1;

# 3355|   

# 3356|       MoveErrors(File_Adm_Private, item_audioObjectInteraction);


Error: COMPILER_WARNING (CWE-563): [#def63]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::Object_Check(file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3363:11: warning[-Wunused-variable]: unused variable ‘Object’
# 3363 |     auto& Object = Objects.back();
#      |           ^~~~~~
# 3361|       auto& Items = File_Adm_Private->Items;

# 3362|       auto& Objects = Items[item_audioObject].Items;

# 3363|->     auto& Object = Objects.back();

# 3364|   

# 3365|       size_t i = Objects.size() - 1;


Error: COMPILER_WARNING (CWE-563): [#def64]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3365:12: warning[-Wunused-variable]: unused variable ‘i’
# 3365 |     size_t i = Objects.size() - 1;
#      |            ^
# 3363|       auto& Object = Objects.back();

# 3364|   

# 3365|->     size_t i = Objects.size() - 1;

# 3366|   

# 3367|       MoveErrors(File_Adm_Private, item_audioObject);


Error: COMPILER_WARNING (CWE-195): [#def65]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::audioBlockFormat_Check(file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3490:35: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 3490 |         if (End - Element.c_str() != Element.size()) {
#      |             ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
# 3488|           char* End;

# 3489|           auto Value = strtof(Element.c_str(), &End);

# 3490|->         if (End - Element.c_str() != Element.size()) {

# 3491|               BlockFormat.AddError(Error, ":diffuse" + to_string(k) + ":GeneralCompliance:diffuse element value \"" + Element + "\" is malformed");

# 3492|           }


Error: COMPILER_WARNING (CWE-195): [#def66]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3508:35: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 3508 |         if (End - Element.c_str() != Element.size()) {
#      |             ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
# 3506|           char* End;

# 3507|           auto Value = strtof(Element.c_str(), &End);

# 3508|->         if (End - Element.c_str() != Element.size()) {

# 3509|               BlockFormat.AddError(Error, ":gain:gain attribute value \"" + Element + "\" is malformed");

# 3510|           }


Error: COMPILER_WARNING (CWE-195): [#def67]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3522:35: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 3522 |         if (End - Element.c_str() != Element.size()) {
#      |             ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
# 3520|           char* End;

# 3521|           auto Value = strtof(Element.c_str(), &End);

# 3522|->         if (End - Element.c_str() != Element.size()) {

# 3523|               BlockFormat.AddError(Error, ":importance:importance element value \"" + Element + "\" is malformed");

# 3524|           }


Error: COMPILER_WARNING (CWE-457): [#def68]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘MediaInfoLib::audioBlockFormat_Check(MediaInfoLib::file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3533:64: warning[-Wmaybe-uninitialized]: ‘Gains_Not0_Pos’ may be used uninitialized
# 3533 |                 BlockFormat.AddError(Error, ":gain" + to_string(Gains_Not0_Pos) + ":gain element value \"" + Gains_Not0 + "\" is not permitted, permitted value is 0 due to importance element value not 0", Source_Atmos_1_0);
#      |                                                       ~~~~~~~~~^~~~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3502:12: note: ‘Gains_Not0_Pos’ was declared here
# 3502 |     size_t Gains_Not0_Pos;
#      |            ^~~~~~~~~~~~~~
# 3531|               }

# 3532|               else {

# 3533|->                 BlockFormat.AddError(Error, ":gain" + to_string(Gains_Not0_Pos) + ":gain element value \"" + Gains_Not0 + "\" is not permitted, permitted value is 0 due to importance element value not 0", Source_Atmos_1_0);

# 3534|               }

# 3535|           }


Error: COMPILER_WARNING (CWE-1023): [#def69]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3547:16: warning[-Wswitch]: enumeration value ‘Type_Binaural’ not handled in switch
# 3545|       switch (jumpPositions.size()) {

# 3546|       case 0:

# 3547|->         switch (Type) {

# 3548|           case Type_Objects:

# 3549|               BlockFormat.AddError(Error, ":jumpPosition:jumpPosition element is not present", Source_Atmos_1_0);


Error: COMPILER_WARNING (CWE-1023): [#def70]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3547:16: warning[-Wswitch]: enumeration value ‘Type_DirectSpeakers’ not handled in switch
# 3545|       switch (jumpPositions.size()) {

# 3546|       case 0:

# 3547|->         switch (Type) {

# 3548|           case Type_Objects:

# 3549|               BlockFormat.AddError(Error, ":jumpPosition:jumpPosition element is not present", Source_Atmos_1_0);


Error: COMPILER_WARNING (CWE-1023): [#def71]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3547:16: warning[-Wswitch]: enumeration value ‘Type_HOA’ not handled in switch
# 3545|       switch (jumpPositions.size()) {

# 3546|       case 0:

# 3547|->         switch (Type) {

# 3548|           case Type_Objects:

# 3549|               BlockFormat.AddError(Error, ":jumpPosition:jumpPosition element is not present", Source_Atmos_1_0);


Error: COMPILER_WARNING (CWE-1023): [#def72]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3547:16: warning[-Wswitch]: enumeration value ‘Type_Matrix’ not handled in switch
# 3545|       switch (jumpPositions.size()) {

# 3546|       case 0:

# 3547|->         switch (Type) {

# 3548|           case Type_Objects:

# 3549|               BlockFormat.AddError(Error, ":jumpPosition:jumpPosition element is not present", Source_Atmos_1_0);


Error: COMPILER_WARNING (CWE-1023): [#def73]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3547:16: warning[-Wswitch]: enumeration value ‘Type_Max’ not handled in switch
# 3545|       switch (jumpPositions.size()) {

# 3546|       case 0:

# 3547|->         switch (Type) {

# 3548|           case Type_Objects:

# 3549|               BlockFormat.AddError(Error, ":jumpPosition:jumpPosition element is not present", Source_Atmos_1_0);


Error: COMPILER_WARNING (CWE-1023): [#def74]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3547:16: warning[-Wswitch]: enumeration value ‘Type_Unknown’ not handled in switch
# 3547 |         switch (Type) {
#      |                ^
# 3545|       switch (jumpPositions.size()) {

# 3546|       case 0:

# 3547|->         switch (Type) {

# 3548|           case Type_Objects:

# 3549|               BlockFormat.AddError(Error, ":jumpPosition:jumpPosition element is not present", Source_Atmos_1_0);


Error: COMPILER_WARNING (CWE-1023): [#def75]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3553:16: warning[-Wswitch]: enumeration value ‘Type_Binaural’ not handled in switch
# 3551|           break;

# 3552|       default:

# 3553|->         switch (Type) {

# 3554|           case Type_DirectSpeakers:

# 3555|               BlockFormat.AddError(Error, ":GeneralCompliance:jumpPosition subelement count " + to_string(jumpPositions.size()) + " is not permitted, max is 1", Source_Atmos_1_0);


Error: COMPILER_WARNING (CWE-1023): [#def76]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3553:16: warning[-Wswitch]: enumeration value ‘Type_HOA’ not handled in switch
# 3551|           break;

# 3552|       default:

# 3553|->         switch (Type) {

# 3554|           case Type_DirectSpeakers:

# 3555|               BlockFormat.AddError(Error, ":GeneralCompliance:jumpPosition subelement count " + to_string(jumpPositions.size()) + " is not permitted, max is 1", Source_Atmos_1_0);


Error: COMPILER_WARNING (CWE-1023): [#def77]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3553:16: warning[-Wswitch]: enumeration value ‘Type_Matrix’ not handled in switch
# 3551|           break;

# 3552|       default:

# 3553|->         switch (Type) {

# 3554|           case Type_DirectSpeakers:

# 3555|               BlockFormat.AddError(Error, ":GeneralCompliance:jumpPosition subelement count " + to_string(jumpPositions.size()) + " is not permitted, max is 1", Source_Atmos_1_0);


Error: COMPILER_WARNING (CWE-1023): [#def78]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3553:16: warning[-Wswitch]: enumeration value ‘Type_Max’ not handled in switch
# 3551|           break;

# 3552|       default:

# 3553|->         switch (Type) {

# 3554|           case Type_DirectSpeakers:

# 3555|               BlockFormat.AddError(Error, ":GeneralCompliance:jumpPosition subelement count " + to_string(jumpPositions.size()) + " is not permitted, max is 1", Source_Atmos_1_0);


Error: COMPILER_WARNING (CWE-1023): [#def79]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3553:16: warning[-Wswitch]: enumeration value ‘Type_Objects’ not handled in switch
# 3551|           break;

# 3552|       default:

# 3553|->         switch (Type) {

# 3554|           case Type_DirectSpeakers:

# 3555|               BlockFormat.AddError(Error, ":GeneralCompliance:jumpPosition subelement count " + to_string(jumpPositions.size()) + " is not permitted, max is 1", Source_Atmos_1_0);


Error: COMPILER_WARNING (CWE-1023): [#def80]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3553:16: warning[-Wswitch]: enumeration value ‘Type_Unknown’ not handled in switch
# 3553 |         switch (Type) {
#      |                ^
# 3551|           break;

# 3552|       default:

# 3553|->         switch (Type) {

# 3554|           case Type_DirectSpeakers:

# 3555|               BlockFormat.AddError(Error, ":GeneralCompliance:jumpPosition subelement count " + to_string(jumpPositions.size()) + " is not permitted, max is 1", Source_Atmos_1_0);


Error: COMPILER_WARNING (CWE-1023): [#def81]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3560:16: warning[-Wswitch]: enumeration value ‘Type_Binaural’ not handled in switch
# 3558|           // Fallthrough

# 3559|       case 1:

# 3560|->         switch (Type) {

# 3561|           case Type_Objects: {

# 3562|               const auto& jumpPositions_Items = Items[item_jumpPosition].Items;


Error: COMPILER_WARNING (CWE-1023): [#def82]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3560:16: warning[-Wswitch]: enumeration value ‘Type_DirectSpeakers’ not handled in switch
# 3558|           // Fallthrough

# 3559|       case 1:

# 3560|->         switch (Type) {

# 3561|           case Type_Objects: {

# 3562|               const auto& jumpPositions_Items = Items[item_jumpPosition].Items;


Error: COMPILER_WARNING (CWE-1023): [#def83]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3560:16: warning[-Wswitch]: enumeration value ‘Type_HOA’ not handled in switch
# 3558|           // Fallthrough

# 3559|       case 1:

# 3560|->         switch (Type) {

# 3561|           case Type_Objects: {

# 3562|               const auto& jumpPositions_Items = Items[item_jumpPosition].Items;


Error: COMPILER_WARNING (CWE-1023): [#def84]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3560:16: warning[-Wswitch]: enumeration value ‘Type_Matrix’ not handled in switch
# 3558|           // Fallthrough

# 3559|       case 1:

# 3560|->         switch (Type) {

# 3561|           case Type_Objects: {

# 3562|               const auto& jumpPositions_Items = Items[item_jumpPosition].Items;


Error: COMPILER_WARNING (CWE-1023): [#def85]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3560:16: warning[-Wswitch]: enumeration value ‘Type_Max’ not handled in switch
# 3558|           // Fallthrough

# 3559|       case 1:

# 3560|->         switch (Type) {

# 3561|           case Type_Objects: {

# 3562|               const auto& jumpPositions_Items = Items[item_jumpPosition].Items;


Error: COMPILER_WARNING (CWE-1023): [#def86]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3560:16: warning[-Wswitch]: enumeration value ‘Type_Unknown’ not handled in switch
# 3560 |         switch (Type) {
#      |                ^
# 3558|           // Fallthrough

# 3559|       case 1:

# 3560|->         switch (Type) {

# 3561|           case Type_Objects: {

# 3562|               const auto& jumpPositions_Items = Items[item_jumpPosition].Items;


Error: COMPILER_WARNING (CWE-195): [#def87]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3568:55: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 3568 |                 if (End - interpolationLength.c_str() != interpolationLength.size()) {
#      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3566|                   char* End;

# 3567|                   auto Value = strtof(interpolationLength.c_str(), &End);

# 3568|->                 if (End - interpolationLength.c_str() != interpolationLength.size()) {

# 3569|                       BlockFormat.AddError(Error, ":jumpPosition0:interpolationLength:interpolationLength attribute value \"" + interpolationLength + "\" is malformed");

# 3570|                   }


Error: COMPILER_WARNING (CWE-1023): [#def88]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3654:12: warning[-Wswitch]: enumeration value ‘Type_Binaural’ not handled in switch
# 3652|           };

# 3653|       atmos_audioChannelFormatName speakerLabel_ChannelAssignment = (atmos_audioChannelFormatName)-1;

# 3654|->     switch (Type) {

# 3655|       case Type_DirectSpeakers: {

# 3656|           const audioBlockFormat_Element BlockFormat_DirectSpeakers_List[] = { audioBlockFormat_cartesian, audioBlockFormat_speakerLabel, audioBlockFormat_position }; // TODO: cartesian is not in specs but lot of files have it


Error: COMPILER_WARNING (CWE-1023): [#def89]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3654:12: warning[-Wswitch]: enumeration value ‘Type_HOA’ not handled in switch
# 3652|           };

# 3653|       atmos_audioChannelFormatName speakerLabel_ChannelAssignment = (atmos_audioChannelFormatName)-1;

# 3654|->     switch (Type) {

# 3655|       case Type_DirectSpeakers: {

# 3656|           const audioBlockFormat_Element BlockFormat_DirectSpeakers_List[] = { audioBlockFormat_cartesian, audioBlockFormat_speakerLabel, audioBlockFormat_position }; // TODO: cartesian is not in specs but lot of files have it


Error: COMPILER_WARNING (CWE-1023): [#def90]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3654:12: warning[-Wswitch]: enumeration value ‘Type_Matrix’ not handled in switch
# 3652|           };

# 3653|       atmos_audioChannelFormatName speakerLabel_ChannelAssignment = (atmos_audioChannelFormatName)-1;

# 3654|->     switch (Type) {

# 3655|       case Type_DirectSpeakers: {

# 3656|           const audioBlockFormat_Element BlockFormat_DirectSpeakers_List[] = { audioBlockFormat_cartesian, audioBlockFormat_speakerLabel, audioBlockFormat_position }; // TODO: cartesian is not in specs but lot of files have it


Error: COMPILER_WARNING (CWE-1023): [#def91]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3654:12: warning[-Wswitch]: enumeration value ‘Type_Max’ not handled in switch
# 3652|           };

# 3653|       atmos_audioChannelFormatName speakerLabel_ChannelAssignment = (atmos_audioChannelFormatName)-1;

# 3654|->     switch (Type) {

# 3655|       case Type_DirectSpeakers: {

# 3656|           const audioBlockFormat_Element BlockFormat_DirectSpeakers_List[] = { audioBlockFormat_cartesian, audioBlockFormat_speakerLabel, audioBlockFormat_position }; // TODO: cartesian is not in specs but lot of files have it


Error: COMPILER_WARNING (CWE-1023): [#def92]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3654:12: warning[-Wswitch]: enumeration value ‘Type_Objects’ not handled in switch
# 3652|           };

# 3653|       atmos_audioChannelFormatName speakerLabel_ChannelAssignment = (atmos_audioChannelFormatName)-1;

# 3654|->     switch (Type) {

# 3655|       case Type_DirectSpeakers: {

# 3656|           const audioBlockFormat_Element BlockFormat_DirectSpeakers_List[] = { audioBlockFormat_cartesian, audioBlockFormat_speakerLabel, audioBlockFormat_position }; // TODO: cartesian is not in specs but lot of files have it


Error: COMPILER_WARNING (CWE-1023): [#def93]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3654:12: warning[-Wswitch]: enumeration value ‘Type_Unknown’ not handled in switch
# 3654 |     switch (Type) {
#      |            ^
# 3652|           };

# 3653|       atmos_audioChannelFormatName speakerLabel_ChannelAssignment = (atmos_audioChannelFormatName)-1;

# 3654|->     switch (Type) {

# 3655|       case Type_DirectSpeakers: {

# 3656|           const audioBlockFormat_Element BlockFormat_DirectSpeakers_List[] = { audioBlockFormat_cartesian, audioBlockFormat_speakerLabel, audioBlockFormat_position }; // TODO: cartesian is not in specs but lot of files have it


Error: COMPILER_WARNING (CWE-195): [#def94]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3770:47: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 3770 |                     if (End - Element.c_str() != Element.size()) {
#      |                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
# 3768|                       char* End;

# 3769|                       auto Value = strtof(Element.c_str(), &End);

# 3770|->                     if (End - Element.c_str() != Element.size()) {

# 3771|                           BlockFormat.AddError(Error, ":position" + to_string(k) + ":GeneralCompliance:position element value \"" + BlockFormat.Elements[audioBlockFormat_position][k] + "\" is malformed");

# 3772|                       }


Error: COMPILER_WARNING (CWE-195): [#def95]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3814:47: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 3814 |                     if (End - Element.c_str() != Element.size()) {
#      |                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
# 3812|                       char* End;

# 3813|                       Values[Pos] = strtof(Element.c_str(), &End);

# 3814|->                     if (End - Element.c_str() != Element.size()) {

# 3815|                           ValuesAreNok = true;

# 3816|                           BlockFormat.AddError(Error, string(1, ':') + (*item_Infos[item_audioBlockFormat].Element_Infos)[k].Name + ':' + (*item_Infos[item_audioBlockFormat].Element_Infos)[k].Name + " element value \"" + Element + "\" is malformed");


Error: COMPILER_WARNING (CWE-195): [#def96]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3872:43: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 3872 |                 if (End - Element.c_str() < Element.size()) {
#      |                     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
# 3870|                   char* End;

# 3871|                   auto Value = strtof(Element.c_str(), &End);

# 3872|->                 if (End - Element.c_str() < Element.size()) {

# 3873|                       BlockFormat.AddError(Error, string(1, ':') + (*item_Infos[item_audioBlockFormat].Element_Infos)[k].Name + ':' + (*item_Infos[item_audioBlockFormat].Element_Infos)[k].Name + " element value \"" + Element + "\" is malformed");

# 3874|                   }


Error: COMPILER_WARNING (CWE-195): [#def97]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3896:30: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’
# 3896 |             if (is_cartesian != File_Adm_Private->CartesianAlreadyNotCoherent - cartesian_0) {
#      |                 ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3894|               break;

# 3895|           default:

# 3896|->             if (is_cartesian != File_Adm_Private->CartesianAlreadyNotCoherent - cartesian_0) {

# 3897|                   BlockFormat.AddError(Error, ":cartesian:cartesian element values are not consistant between audioBlockFormat elements", Source_AdvSSE_1);

# 3898|                   File_Adm_Private->CartesianAlreadyNotCoherent = cartesian_alreadyincoherent;


Error: COMPILER_WARNING (CWE-563): [#def98]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3926:12: warning[-Wunused-variable]: unused variable ‘i’
# 3926 |     size_t i = ChannelFormats.size() - 1;
#      |            ^
# 3924|       auto& Gain = Gains.back();

# 3925|   

# 3926|->     size_t i = ChannelFormats.size() - 1;

# 3927|       size_t j = ChannelFormat.Elements[audioChannelFormat_audioBlockFormat].size() - 1;

# 3928|   


Error: COMPILER_WARNING (CWE-563): [#def99]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3927:12: warning[-Wunused-variable]: unused variable ‘j’
# 3927 |     size_t j = ChannelFormat.Elements[audioChannelFormat_audioBlockFormat].size() - 1;
#      |            ^
# 3925|   

# 3926|       size_t i = ChannelFormats.size() - 1;

# 3927|->     size_t j = ChannelFormat.Elements[audioChannelFormat_audioBlockFormat].size() - 1;

# 3928|   

# 3929|       static const char* gain_List[] = { "linear", "dB" };


Error: COMPILER_WARNING (CWE-195): [#def100]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::gain_Check(file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3950:29: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 3950 |     if (End - Value.c_str() != Value.size()) {
#      |         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
# 3948|       char* End;

# 3949|       auto Float = strtod(Value.c_str(), &End);

# 3950|->     if (End - Value.c_str() != Value.size()) {

# 3951|           BlockFormat.AddError(Error, audioBlockFormat_gain, E::Form, File_Adm_Private, Value);

# 3952|       }


Error: COMPILER_WARNING (CWE-195): [#def101]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::coefficient_Check(file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3993:33: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 3993 |         if (End - Value.c_str() != Value.size()) {
#      |             ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
# 3991|           char* End;

# 3992|           auto Float = strtod(Value.c_str(), &End);

# 3993|->         if (End - Value.c_str() != Value.size()) {

# 3994|               Coefficient.AddError(Error, coefficient_gain, E::Form, File_Adm_Private, Value);

# 3995|           }


Error: COMPILER_WARNING (CWE-563): [#def102]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::matrix_Check(file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4018:11: warning[-Wunused-variable]: unused variable ‘BlockFormat’
# 4018 |     auto& BlockFormat = BlockFormats.back();
#      |           ^~~~~~~~~~~
# 4016|       auto& ChannelFormat = ChannelFormats.back();

# 4017|       auto& BlockFormats = Items[item_audioBlockFormat].Items;

# 4018|->     auto& BlockFormat = BlockFormats.back();

# 4019|       auto& Matrixes = Items[item_matrix].Items;

# 4020|       auto& Matrix = Matrixes.back();


Error: COMPILER_WARNING (CWE-563): [#def103]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4020:11: warning[-Wunused-variable]: unused variable ‘Matrix’
# 4020 |     auto& Matrix = Matrixes.back();
#      |           ^~~~~~
# 4018|       auto& BlockFormat = BlockFormats.back();

# 4019|       auto& Matrixes = Items[item_matrix].Items;

# 4020|->     auto& Matrix = Matrixes.back();

# 4021|   

# 4022|       while (File_Adm_Private->ChannelFormat_Matrix_coefficients.size() < ChannelFormats.size()) {


Error: COMPILER_WARNING (CWE-563): [#def104]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4040:11: warning[-Wunused-variable]: unused variable ‘ChannelFormat’
# 4040 |     auto& ChannelFormat = ChannelFormats.back();
#      |           ^~~~~~~~~~~~~
# 4038|       auto& Items = File_Adm_Private->Items;

# 4039|       auto& ChannelFormats = Items[item_audioChannelFormat].Items;

# 4040|->     auto& ChannelFormat = ChannelFormats.back();

# 4041|       auto& BlockFormats = Items[item_audioBlockFormat].Items;

# 4042|       auto& BlockFormat = BlockFormats.back();


Error: COMPILER_WARNING (CWE-195): [#def105]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::objectDivergence_Check(file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4054:35: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 4054 |         if (End - Element.c_str() != Element.size()) {
#      |             ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
# 4052|           char* End;

# 4053|           auto Value = strtof(Element.c_str(), &End);

# 4054|->         if (End - Element.c_str() != Element.size()) {

# 4055|               objectDivergence.AddError(Error, 0x80 | (char)objectDivergence_azimuthRange, E::Form, File_Adm_Private, Element);

# 4056|           }


Error: COMPILER_WARNING (CWE-195): [#def106]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4067:35: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 4067 |         if (End - Element.c_str() != Element.size()) {
#      |             ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
# 4065|           char* End;

# 4066|           auto Value = strtof(Element.c_str(), &End);

# 4067|->         if (End - Element.c_str() != Element.size()) {

# 4068|               objectDivergence.AddError(Error, 0x80 | (char)objectDivergence_positionRange, E::Form, File_Adm_Private, Element);

# 4069|           }


Error: COMPILER_WARNING (CWE-195): [#def107]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4078:31: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 4078 |     if (End - Element.c_str() != Element.size()) {
#      |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
# 4076|       char* End;

# 4077|       auto Value = strtof(Element.c_str(), &End);

# 4078|->     if (End - Element.c_str() != Element.size()) {

# 4079|           BlockFormat.AddError(Error, (char)audioBlockFormat_objectDivergence, E::Form, File_Adm_Private, Element);

# 4080|       }


Error: COMPILER_WARNING (CWE-563): [#def108]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4097:12: warning[-Wunused-variable]: unused variable ‘i’
# 4097 |     size_t i = ChannelFormats.size() - 1;
#      |            ^
# 4095|       auto& Zones = Items[item_zone].Items;

# 4096|   

# 4097|->     size_t i = ChannelFormats.size() - 1;

# 4098|       size_t j = ChannelFormat.Elements[audioChannelFormat_audioBlockFormat].size() - 1;

# 4099|       size_t zoneExclusion_Count = BlockFormat.Elements[audioBlockFormat_zoneExclusion].size();


Error: COMPILER_WARNING (CWE-563): [#def109]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4098:12: warning[-Wunused-variable]: unused variable ‘j’
# 4098 |     size_t j = ChannelFormat.Elements[audioChannelFormat_audioBlockFormat].size() - 1;
#      |            ^
# 4096|   

# 4097|       size_t i = ChannelFormats.size() - 1;

# 4098|->     size_t j = ChannelFormat.Elements[audioChannelFormat_audioBlockFormat].size() - 1;

# 4099|       size_t zoneExclusion_Count = BlockFormat.Elements[audioBlockFormat_zoneExclusion].size();

# 4100|       size_t zoneExclusion_Pos = ZoneExclusions.size() - zoneExclusion_Count;


Error: COMPILER_WARNING (CWE-563): [#def110]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4100:12: warning[-Wunused-variable]: unused variable ‘zoneExclusion_Pos’
# 4100 |     size_t zoneExclusion_Pos = ZoneExclusions.size() - zoneExclusion_Count;
#      |            ^~~~~~~~~~~~~~~~~
# 4098|       size_t j = ChannelFormat.Elements[audioChannelFormat_audioBlockFormat].size() - 1;

# 4099|       size_t zoneExclusion_Count = BlockFormat.Elements[audioBlockFormat_zoneExclusion].size();

# 4100|->     size_t zoneExclusion_Pos = ZoneExclusions.size() - zoneExclusion_Count;

# 4101|       size_t zone_Count = ZoneExclusion.Elements[zoneExclusion_zone].size();

# 4102|       size_t zone_Pos = Zones.size() - zone_Count;


Error: COMPILER_WARNING (CWE-681): [#def111]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::zoneExclusion_Check(file_adm_private*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4133:32: warning[-Woverflow]: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘18446744073709551615’ to ‘-1’
# 4133 |                 is_cartesian = (unsigned long)-1;
#      |                                ^~~~~~~~~~~~~~~~~
# 4131|               }

# 4132|               else {

# 4133|->                 is_cartesian = (unsigned long)-1;

# 4134|               }

# 4135|   


Error: COMPILER_WARNING (CWE-195): [#def112]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4145:53: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 4145 |                         if (End - Attribute.c_str() != Attribute.size()) {
#      |                             ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
# 4143|                           char* End;

# 4144|                           Values.Values[m] = strtof(Attribute.c_str(), &End);

# 4145|->                         if (End - Attribute.c_str() != Attribute.size()) {

# 4146|                               ValuesAreNok = true;

# 4147|                               const auto& Info = (*item_Infos[item_zone].Attribute_Infos)[m];


Error: COMPILER_WARNING (CWE-195): [#def113]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4165:60: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’
# 4165 |                     if (position_Channezone_PoslAssignment == -1) {
#      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 4163|                   if (!ValuesAreNok) {

# 4164|                       auto position_Channezone_PoslAssignment = Atmos_zone_Pos(Values.Name, Values.Values);

# 4165|->                     if (position_Channezone_PoslAssignment == -1) {

# 4166|                           BlockFormat.AddError(Error, ":zoneExclusion" + to_string(k) + ":zone" + to_string(l) + ":GeneralCompliance:zone@minX maxX minY maxY minZ maxZ attributes and element value \"" + Zone.Attributes[zone_minX] + "\" \"" + Zone.Attributes[zone_maxX] + "\" \"" + Zone.Attributes[zone_minY] + "\" \"" + Zone.Attributes[zone_maxY] + "\" \"" + Zone.Attributes[zone_minZ] + "\" \"" + Zone.Attributes[zone_maxZ] + "\" \"" + ZoneExclusion.Elements[zoneExclusion_zone][l] + "\" is not valid", S [...]
# 4167|                       }

libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4165:60: note: trimmed 1 message(s) with length over 512

Error: COMPILER_WARNING (CWE-563): [#def114]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In member function ‘int MediaInfoLib::file_adm_private::audioFormatExtended()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4778:11: warning[-Wunused-variable]: unused variable ‘Items_Up’
# 4778 |     auto& Items_Up = Items_audioFormatExtended;
#      |           ^~~~~~~~
# 4776|       Item_Struct& audioFormatExtended_Content = Items[item_audioFormatExtended].Items.back();

# 4777|       auto& Items_audioFormatExtended = Items[item_audioFormatExtended].Items;

# 4778|->     auto& Items_Up = Items_audioFormatExtended;

# 4779|       XML_BEGIN

# 4780|       XML_ATTR_START


Error: COMPILER_WARNING (CWE-563): [#def115]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In member function ‘int MediaInfoLib::file_adm_private::frameHeader()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:5153:11: warning[-Wunused-variable]: unused variable ‘Items_Up’
# 5153 |     auto& Items_Up = Items_frameHeader;
#      |           ^~~~~~~~
# 5151|       Item_Struct& frameHeader_Content = Items[item_frameHeader].Items.back();

# 5152|       auto& Items_frameHeader = Items[item_frameHeader].Items;

# 5153|->     auto& Items_Up = Items_frameHeader;

# 5154|       XML_BEGIN

# 5155|       XML_ATTR_START


Error: COMPILER_WARNING (CWE-563): [#def116]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::FillErrors(file_adm_private*, item, size_t, const char*, std::vector<std::__cxx11::basic_string<char> >*, std::vector<std::__cxx11::basic_string<char> >*, bool, size_t*, bool)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:5262:40: warning[-Wunused-variable]: unused variable ‘Element_Infos’
# 5262 |                             const auto Element_Infos = item_Infos[item_Type2].Element_Infos;
#      |                                        ^~~~~~~~~~~~~
# 5260|                               Value_Pos--;

# 5261|                               item_Type2 = (item)Value[Value_Pos];

# 5262|->                             const auto Element_Infos = item_Infos[item_Type2].Element_Infos;

# 5263|                               Field += CraftName(item_Infos[item_Type2].Name) + to_string(j) + ' ';

# 5264|                           }


Error: COMPILER_WARNING (CWE-823): [#def117]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:5275:44: warning[-Wchar-subscripts]: array subscript has type ‘char’
# 5275 |                         Value += E_Strings[ErrorType];
#      |                                            ^~~~~~~~~
# 5273|                           Value += IsAttribute ? "attribute" : "element";

# 5274|                           Value += ' ';

# 5275|->                         Value += E_Strings[ErrorType];

# 5276|                           auto Pos = Value.find("{}");

# 5277|                           if (Pos != string::npos) {


Error: COMPILER_WARNING (CWE-195): [#def118]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:5282:42: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘const char’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’}
# 5282 |                                 if (Opt0 < File_Adm_Private->Errors_Tips[k][l].size()) {
#      |                                     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5280|                               case E::Form:

# 5281|                               case E::Permitted:

# 5282|->                                 if (Opt0 < File_Adm_Private->Errors_Tips[k][l].size()) {

# 5283|                                       Value.insert(Pos, File_Adm_Private->Errors_Tips[k][l][Opt0]);

# 5284|                                   }


Error: COMPILER_WARNING (CWE-195): [#def119]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Adm::Streams_Fill()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:5505:30: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
# 5505 |         for (size_t j = 0; j < (PosCommon == 0 ? 1 : PosCommon); j++)
#      |                            ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5503|               }

# 5504|           }

# 5505|->         for (size_t j = 0; j < (PosCommon == 0 ? 1 : PosCommon); j++)

# 5506|           {

# 5507|               if (profileInfos[0].Strings[j].empty()) {


Error: COMPILER_WARNING (CWE-195): [#def120]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:5510:100: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
# 5510 |             Fill(Stream_Audio, 0, (string("AdmProfile_") + profile_names_InternalID[j]).c_str(), j < PosCommon ? profileInfos[0].Strings[j] : "Multiple");
#      |                                                                                                  ~~^~~~~~~~~~~
# 5508|                   continue;

# 5509|               }

# 5510|->             Fill(Stream_Audio, 0, (string("AdmProfile_") + profile_names_InternalID[j]).c_str(), j < PosCommon ? profileInfos[0].Strings[j] : "Multiple");

# 5511|               Fill_SetOptions(Stream_Audio, 0, (string("AdmProfile_") + profile_names_InternalID[j]).c_str(), "N NTY");

# 5512|           }


Error: COMPILER_WARNING (CWE-563): [#def121]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:5784:18: warning[-Wunused-but-set-variable]: variable ‘HasChannelLayout’ set but not used
# 5784 |             bool HasChannelLayout = false;
#      |                  ^~~~~~~~~~~~~~~~
# 5782|           for (size_t j = 0; j < Source.Elements[audioPackFormat_audioChannelFormatIDRef].size(); j++) {

# 5783|               const string& ID = Source.Elements[audioPackFormat_audioChannelFormatIDRef][j];

# 5784|->             bool HasChannelLayout = false;

# 5785|               for (size_t k = 0; k < Dest.Items.size(); k++) {

# 5786|                   if (Dest.Items[k].Attributes[audioChannelFormat_audioChannelFormatID] != ID) {


Error: COMPILER_WARNING (CWE-563): [#def122]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:5901:11: warning[-Wunused-variable]: unused variable ‘BlockFormats’
# 5901 |     auto& BlockFormats = File_Adm_Private->Items[item_audioBlockFormat].Items;
#      |           ^~~~~~~~~~~~
# 5899|       auto& TrackFormats = File_Adm_Private->Items[item_audioTrackFormat].Items;

# 5900|       auto& TrackUIDs = File_Adm_Private->Items[item_audioTrackUID].Items;

# 5901|->     auto& BlockFormats = File_Adm_Private->Items[item_audioBlockFormat].Items;

# 5902|       auto& Positions = File_Adm_Private->Items[item_position].Items;

# 5903|       auto& ZoneExclusions = File_Adm_Private->Items[item_zoneExclusion].Items;


Error: COMPILER_WARNING (CWE-563): [#def123]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:5902:11: warning[-Wunused-variable]: unused variable ‘Positions’
# 5902 |     auto& Positions = File_Adm_Private->Items[item_position].Items;
#      |           ^~~~~~~~~
# 5900|       auto& TrackUIDs = File_Adm_Private->Items[item_audioTrackUID].Items;

# 5901|       auto& BlockFormats = File_Adm_Private->Items[item_audioBlockFormat].Items;

# 5902|->     auto& Positions = File_Adm_Private->Items[item_position].Items;

# 5903|       auto& ZoneExclusions = File_Adm_Private->Items[item_zoneExclusion].Items;

# 5904|       auto& Zones = File_Adm_Private->Items[item_zone].Items;


Error: COMPILER_WARNING (CWE-563): [#def124]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:5903:11: warning[-Wunused-variable]: unused variable ‘ZoneExclusions’
# 5903 |     auto& ZoneExclusions = File_Adm_Private->Items[item_zoneExclusion].Items;
#      |           ^~~~~~~~~~~~~~
# 5901|       auto& BlockFormats = File_Adm_Private->Items[item_audioBlockFormat].Items;

# 5902|       auto& Positions = File_Adm_Private->Items[item_position].Items;

# 5903|->     auto& ZoneExclusions = File_Adm_Private->Items[item_zoneExclusion].Items;

# 5904|       auto& Zones = File_Adm_Private->Items[item_zone].Items;

# 5905|       auto& TransportTrackFormats = File_Adm_Private->Items[item_transportTrackFormat].Items;


Error: COMPILER_WARNING (CWE-563): [#def125]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:5904:11: warning[-Wunused-variable]: unused variable ‘Zones’
# 5904 |     auto& Zones = File_Adm_Private->Items[item_zone].Items;
#      |           ^~~~~
# 5902|       auto& Positions = File_Adm_Private->Items[item_position].Items;

# 5903|       auto& ZoneExclusions = File_Adm_Private->Items[item_zoneExclusion].Items;

# 5904|->     auto& Zones = File_Adm_Private->Items[item_zone].Items;

# 5905|       auto& TransportTrackFormats = File_Adm_Private->Items[item_transportTrackFormat].Items;

# 5906|       auto& frameHeaders = File_Adm_Private->Items[item_frameHeader].Items;


Error: COMPILER_WARNING (CWE-563): [#def126]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:6463:12: warning[-Wunused-variable]: unused variable ‘BlockFormat_Pos’
# 6463 |     size_t BlockFormat_Pos = 0;
#      |            ^~~~~~~~~~~~~~~
# 6461|   

# 6462|       // Errors - audioChannelFormat

# 6463|->     size_t BlockFormat_Pos = 0;

# 6464|       size_t Position_Pos = 0;

# 6465|       size_t zoneExclusion_Pos = 0;


Error: COMPILER_WARNING (CWE-563): [#def127]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:6464:12: warning[-Wunused-variable]: unused variable ‘Position_Pos’
# 6464 |     size_t Position_Pos = 0;
#      |            ^~~~~~~~~~~~
# 6462|       // Errors - audioChannelFormat

# 6463|       size_t BlockFormat_Pos = 0;

# 6464|->     size_t Position_Pos = 0;

# 6465|       size_t zoneExclusion_Pos = 0;

# 6466|       size_t zone_Pos = 0;


Error: COMPILER_WARNING (CWE-563): [#def128]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:6465:12: warning[-Wunused-variable]: unused variable ‘zoneExclusion_Pos’
# 6465 |     size_t zoneExclusion_Pos = 0;
#      |            ^~~~~~~~~~~~~~~~~
# 6463|       size_t BlockFormat_Pos = 0;

# 6464|       size_t Position_Pos = 0;

# 6465|->     size_t zoneExclusion_Pos = 0;

# 6466|       size_t zone_Pos = 0;

# 6467|       for (size_t i = 0; i < ChannelFormats.size(); i++) {


Error: COMPILER_WARNING (CWE-563): [#def129]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:6466:12: warning[-Wunused-variable]: unused variable ‘zone_Pos’
# 6466 |     size_t zone_Pos = 0;
#      |            ^~~~~~~~
# 6464|       size_t Position_Pos = 0;

# 6465|       size_t zoneExclusion_Pos = 0;

# 6466|->     size_t zone_Pos = 0;

# 6467|       for (size_t i = 0; i < ChannelFormats.size(); i++) {

# 6468|           auto& ChannelFormat = ChannelFormats[i];


Error: COMPILER_WARNING (CWE-563): [#def130]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:6469:21: warning[-Wunused-variable]: unused variable ‘ID’
# 6469 |         const auto& ID = ChannelFormat.Attributes[audioChannelFormat_audioChannelFormatID];
#      |                     ^~
# 6467|       for (size_t i = 0; i < ChannelFormats.size(); i++) {

# 6468|           auto& ChannelFormat = ChannelFormats[i];

# 6469|->         const auto& ID = ChannelFormat.Attributes[audioChannelFormat_audioChannelFormatID];

# 6470|           const auto Type = GetType(File_Adm_Private, item_audioChannelFormat, i);

# 6471|   


Error: COMPILER_WARNING (CWE-563): [#def131]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:6529:15: warning[-Wunused-variable]: unused variable ‘StreamFormat’
# 6529 |         auto& StreamFormat = StreamFormats[i];
#      |               ^~~~~~~~~~~~
# 6527|       // Errors - audioStreamFormat

# 6528|       for (size_t i = 0; i < StreamFormats.size(); i++) {

# 6529|->         auto& StreamFormat = StreamFormats[i];

# 6530|       }

# 6531|   


Error: COMPILER_WARNING (CWE-563): [#def132]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:6534:15: warning[-Wunused-variable]: unused variable ‘TrackFormat’
# 6534 |         auto& TrackFormat = TrackFormats[i];
#      |               ^~~~~~~~~~~
# 6532|       // Errors - audioTrackFormat

# 6533|       for (size_t i = 0; i < TrackFormats.size(); i++) {

# 6534|->         auto& TrackFormat = TrackFormats[i];

# 6535|       }

# 6536|   


Error: COMPILER_WARNING (CWE-195): [#def133]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:6545:39: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 6545 |             if (End - Element.c_str() < Element.size()) {
#      |                 ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
# 6543|               char* End;

# 6544|               auto Value = strtof(Element.c_str(), &End);

# 6545|->             if (End - Element.c_str() < Element.size()) {

# 6546|                   TrackUID.AddError(Error, ":audioTrackUID" + to_string(i) + ":sampleRate:sampleRate attribute value \"" + Element + "\" is malformed");

# 6547|               }


Error: COMPILER_WARNING (CWE-195): [#def134]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:6557:39: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
# 6557 |             if (End - Element.c_str() < Element.size()) {
#      |                 ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
# 6555|               char* End;

# 6556|               auto Value = strtof(Element.c_str(), &End);

# 6557|->             if (End - Element.c_str() < Element.size()) {

# 6558|                   TrackUID.AddError(Error, ":audioTrackUID" + to_string(i) + ":bitDepth:bitDepth attribute value \"" + Element + "\" is malformed");

# 6559|               }


Error: COMPILER_WARNING (CWE-1164): [#def135]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aptx100.cpp:52:13: warning[-Wunused-function]: ‘char MediaInfoLib::ascii_to_lower(char)’ defined but not used
#   52 | static char ascii_to_lower(char v)
#      |             ^~~~~~~~~~~~~~
#   50|   

#   51|   //---------------------------------------------------------------------------

#   52|-> static char ascii_to_lower(char v)

#   53|   {

#   54|       if (v >= 'A' && v <= 'Z')


Error: COMPILER_WARNING (CWE-563): [#def136]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_ChannelSplitting.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_ChannelSplitting::Streams_Fill()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_ChannelSplitting.cpp:116:16: warning[-Wunused-variable]: unused variable ‘Pos’
#  116 |         size_t Pos=Count_Get(Stream_Audio);
#      |                ^~~
#  114|           Parser.Accept();
#  115|           Fill(&Parser);
#  116|->         size_t Pos=Count_Get(Stream_Audio);
#  117|           Merge(Parser);
#  118|   

Error: COMPILER_WARNING (CWE-195): [#def137]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dat.cpp: scope_hint: In lambda function
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dat.cpp:205:44: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
#  205 |             if (Max_Value < Values[i] && i != Max_Pos) {
#      |                                          ~~^~~~~~~~~~
#  203|           Max_Value >>= 2;

#  204|           for (size_t i = 0; i < 4; i++) {

#  205|->             if (Max_Value < Values[i] && i != Max_Pos) {

#  206|                   return -1;

#  207|               }


Error: COMPILER_WARNING (CWE-563): [#def138]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyAudioMetadata.cpp: scope_hint: At global scope
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyAudioMetadata.cpp:75:20: warning[-Wunused-variable]: ‘MediaInfoLib::trim_bypass_Name’ defined but not used
#   75 | static const char* trim_bypass_Name[] =
#      |                    ^~~~~~~~~~~~~~~~
#   73|   static size_t warp_mode_Name_Size=sizeof(warp_mode_Name)/sizeof(const char*);

#   74|   

#   75|-> static const char* trim_bypass_Name[] =

#   76|   {

#   77|       "Trim applied",


Error: COMPILER_WARNING (CWE-563): [#def139]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyAudioMetadata.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DolbyAudioMetadata::Dolby_Atmos_Supplemental_Metadata_Segment()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyAudioMetadata.cpp:349:10: warning[-Wunused-variable]: unused variable ‘TrimNotAlwaysManual’
#  349 |     bool TrimNotAlwaysManual=false;
#      |          ^~~~~~~~~~~~~~~~~~~
#  347|       Skip_L1(                                                    "reserved");

#  348|       bitset<2> TrimAutoSet;

#  349|->     bool TrimNotAlwaysManual=false;

#  350|       Fill(Stream_Audio, 0, "Dolby_Atmos_Metadata TrimMode", "Yes");

#  351|       for (int cfg=0; cfg<9; cfg++)


Error: COMPILER_WARNING (CWE-563): [#def140]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyAudioMetadata.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DolbyAudioMetadata::Merge(MediaInfoLib::File__Analyze&, size_t)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyAudioMetadata.cpp:532:18: warning[-Wunused-variable]: unused variable ‘PosI’
#  532 |             auto PosI=(size_t)Pos.To_int64u();
#      |                  ^~~~
#  530|           {

#  531|               string Name=TrackUID_String+Pos.To_UTF8();

#  532|->             auto PosI=(size_t)Pos.To_int64u();

#  533|               if (In.Retrieve_Const(Stream_Audio, 0, Name.c_str()).empty())

#  534|                   In.Fill(Stream_Audio, 0, Name.c_str(), "Yes");


Error: COMPILER_WARNING (CWE-563): [#def141]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DolbyE::guard_band()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:2005:12: warning[-Wunused-but-set-variable]: variable ‘Buffer_Size_Save’ set but not used
# 2005 |     size_t Buffer_Size_Save;
#      |            ^~~~~~~~~~~~~~~~
# 2003|       int8u* NewBuffer=NULL;

# 2004|       size_t Buffer_Offset_Save;

# 2005|->     size_t Buffer_Size_Save;

# 2006|       int64u Element_Offset_Save;

# 2007|       int64u Element_Size_Save;


Error: COMPILER_WARNING (CWE-457): [#def142]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:2116:21: warning[-Wmaybe-uninitialized]: ‘Element_Size_Save’ may be used uninitialized
# 2116 |         Element_Size=Element_Size_Save;
#      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:2007:12: note: ‘Element_Size_Save’ was declared here
# 2007 |     int64u Element_Size_Save;
#      |            ^~~~~~~~~~~~~~~~~
# 2114|           Buffer_Size=Buffer_Offset_Save;

# 2115|           Element_Offset=Element_Offset_Save;

# 2116|->         Element_Size=Element_Size_Save;

# 2117|           File_Offset-=Buffer_Offset+Element_Offset;

# 2118|       }


Error: COMPILER_WARNING (CWE-457): [#def143]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: scope_hint: In member function ‘MediaInfoLib::File_DolbyE::guard_band()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:2117:35: warning[-Wmaybe-uninitialized]: ‘Buffer_Offset_Save’ may be used uninitialized
# 2117 |         File_Offset-=Buffer_Offset+Element_Offset;
#      |                      ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:2004:12: note: ‘Buffer_Offset_Save’ was declared here
# 2004 |     size_t Buffer_Offset_Save;
#      |            ^~~~~~~~~~~~~~~~~~
# 2115|           Element_Offset=Element_Offset_Save;

# 2116|           Element_Size=Element_Size_Save;

# 2117|->         File_Offset-=Buffer_Offset+Element_Offset;

# 2118|       }

# 2119|   }


Error: COMPILER_WARNING (CWE-457): [#def144]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:2117:35: warning[-Wmaybe-uninitialized]: ‘Element_Offset_Save’ may be used uninitialized
# 2117 |         File_Offset-=Buffer_Offset+Element_Offset;
#      |                      ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:2006:12: note: ‘Element_Offset_Save’ was declared here
# 2006 |     int64u Element_Offset_Save;
#      |            ^~~~~~~~~~~~~~~~~~~
# 2115|           Element_Offset=Element_Offset_Save;

# 2116|           Element_Size=Element_Size_Save;

# 2117|->         File_Offset-=Buffer_Offset+Element_Offset;

# 2118|       }

# 2119|   }


Error: COMPILER_WARNING (CWE-457): [#def145]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.h:19: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:28: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: scope_hint: In member function ‘MediaInfoLib::File_DolbyE::program_assignment()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:2403:85: warning[-Wmaybe-uninitialized]: ‘nonstd_bed_channel_assignment_mask’ may be used uninitialized
# 2403 |                     Param_Info1(AC3_nonstd_bed_channel_assignment_mask_ChannelLayout(nonstd_bed_channel_assignment_mask));
#      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:2391:28: note: ‘nonstd_bed_channel_assignment_mask’ declared here
# 2391 |                     int32u nonstd_bed_channel_assignment_mask;
#      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2401|                           Get_S3 (17, nonstd_bed_channel_assignment_mask, "nonstd_bed_channel_assignment_mask");

# 2402|                       }

# 2403|->                     Param_Info1(AC3_nonstd_bed_channel_assignment_mask_ChannelLayout(nonstd_bed_channel_assignment_mask));

# 2404|                       nonstd_bed_channel_assignment_masks.push_back(nonstd_bed_channel_assignment_mask);

# 2405|                       size_t BedChannelCount=BedChannelConfiguration_ChannelCount(nonstd_bed_channel_assignment_mask);


Error: COMPILER_WARNING (CWE-563): [#def146]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DolbyE::audio_segment()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:3147:16: warning[-Wunused-but-set-variable]: variable ‘Pos_Begin’ set but not used
# 3147 |         size_t Pos_Begin=0;
#      |                ^~~~~~~~~
# 3145|       #if MEDIAINFO_TRACE

# 3146|           //CRC test

# 3147|->         size_t Pos_Begin=0;

# 3148|       #endif //MEDIAINFO_TRACE

# 3149|       for (int8u Channel=0; Channel<DolbyE_Channels[program_config]; Channel++)


Error: COMPILER_WARNING (CWE-563): [#def147]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DolbyE::metadata_extension_segment()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:3260:16: warning[-Wunused-variable]: unused variable ‘Pos_Begin’
# 3260 |         size_t Pos_Begin=Buffer_Offset*8+(size_t)Element_Size*8-Data_BS_Remain();
#      |                ^~~~~~~~~
# 3258|       #if MEDIAINFO_TRACE

# 3259|           //CRC test

# 3260|->         size_t Pos_Begin=Buffer_Offset*8+(size_t)Element_Size*8-Data_BS_Remain();

# 3261|       #endif //MEDIAINFO_TRACE

# 3262|   


Error: COMPILER_WARNING (CWE-563): [#def148]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DolbyE::audio_extension_segment()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:3323:16: warning[-Wunused-but-set-variable]: variable ‘Pos_Begin’ set but not used
# 3323 |         size_t Pos_Begin=0;
#      |                ^~~~~~~~~
# 3321|       #if MEDIAINFO_TRACE

# 3322|           //CRC test

# 3323|->         size_t Pos_Begin=0;

# 3324|       #endif //MEDIAINFO_TRACE

# 3325|       for (int8u Channel=0; Channel<DolbyE_Channels[program_config]; Channel++)


Error: COMPILER_WARNING (CWE-563): [#def149]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:961:10: warning[-Wunused-variable]: unused variable ‘Header_Parsed’
#  961 |     bool Header_Parsed=false;
#      |          ^~~~~~~~~~~~~
#  959|       int64u StreamSize=-1;

#  960|       int16u Bitw_Stream_Metadata;

#  961|->     bool Header_Parsed=false;

#  962|       int64u Num_Samples_Orig_Audio_At_Max_Fs=0;

#  963|       int32u Num_Frames_Total, TimeStamp, Max_Sample_Rate_Hz=0, Ext_Ss_Avg_Bit_Rate_Kbps=0, Ext_Ss_Peak_Bit_Rate_Kbps=0;


Error: COMPILER_WARNING (CWE-195): [#def150]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Dts_Common::FileHeader_Parse()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:966:22: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64u’ {aka ‘long long unsigned int’} and ‘int’
#  966 |     while (StreamSize==-1 && Element_Size-Element_Offset>=16)
#      |            ~~~~~~~~~~^~~~
#  964|       int16u Core_Ss_Bit_Rate_Kbps=0, Samples_Per_Frame_At_Max_Fs=0, Codec_Delay_At_Max_Fs=0;

#  965|       int8u RefClockCode, TC_Frame_Rate=-1;

#  966|->     while (StreamSize==-1 && Element_Size-Element_Offset>=16)

#  967|       {

#  968|           int64u Name, Size;


Error: COMPILER_WARNING (CWE-195): [#def151]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:1066:19: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64u’ {aka ‘long long unsigned int’} and ‘int’
# 1066 |     if (StreamSize==-1)
#      |         ~~~~~~~~~~^~~~
# 1064|           Element_End0();

# 1065|       }

# 1066|->     if (StreamSize==-1)

# 1067|       {

# 1068|           Element_WaitForMoreData();


Error: COMPILER_WARNING (CWE-195): [#def152]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘virtual bool MediaInfoLib::File_Dts_Common::Header_Begin()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:1118:26: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64u’ {aka ‘long long unsigned int’} and ‘int’
# 1118 |     if (Stream_Offset_Max==-1 || File_Offset+Buffer_Offset!=Stream_Offset_Max || File_Size==-1)
#      |         ~~~~~~~~~~~~~~~~~^~~~
# 1116|   bool File_Dts_Common::Header_Begin()

# 1117|   {

# 1118|->     if (Stream_Offset_Max==-1 || File_Offset+Buffer_Offset!=Stream_Offset_Max || File_Size==-1)

# 1119|           return true;

# 1120|   


Error: COMPILER_WARNING (CWE-195): [#def153]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:1118:91: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64u’ {aka ‘long long unsigned int’} and ‘int’
# 1118 |     if (Stream_Offset_Max==-1 || File_Offset+Buffer_Offset!=Stream_Offset_Max || File_Size==-1)
#      |                                                                                  ~~~~~~~~~^~~~
# 1116|   bool File_Dts_Common::Header_Begin()

# 1117|   {

# 1118|->     if (Stream_Offset_Max==-1 || File_Offset+Buffer_Offset!=Stream_Offset_Max || File_Size==-1)

# 1119|           return true;

# 1120|   


Error: COMPILER_WARNING (CWE-195): [#def154]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘virtual bool MediaInfoLib::File_Dts::Synched_Test()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:1284:30: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64u’ {aka ‘long long unsigned int’} and ‘int’
# 1284 |         if (Stream_Offset_Max!=-1 && File_Offset+Buffer_Offset==Stream_Offset_Max && File_Size!=-1)
#      |             ~~~~~~~~~~~~~~~~~^~~~
# 1282|       if (!Synched)

# 1283|       {

# 1284|->         if (Stream_Offset_Max!=-1 && File_Offset+Buffer_Offset==Stream_Offset_Max && File_Size!=-1)

# 1285|               Synched=true; // It is the file footer

# 1286|           return true;


Error: COMPILER_WARNING (CWE-195): [#def155]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:1284:95: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64u’ {aka ‘long long unsigned int’} and ‘int’
# 1284 |         if (Stream_Offset_Max!=-1 && File_Offset+Buffer_Offset==Stream_Offset_Max && File_Size!=-1)
#      |                                                                                      ~~~~~~~~~^~~~
# 1282|       if (!Synched)

# 1283|       {

# 1284|->         if (Stream_Offset_Max!=-1 && File_Offset+Buffer_Offset==Stream_Offset_Max && File_Size!=-1)

# 1285|               Synched=true; // It is the file footer

# 1286|           return true;


Error: COMPILER_WARNING (CWE-195): [#def156]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dts::Core()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:1642:38: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64u’ {aka ‘long long unsigned int’} and ‘int’
# 1642 |                 if (Stream_Offset_Max!=-1)
#      |                     ~~~~~~~~~~~~~~~~~^~~~
# 1640|               if (!IsSub && Config->ParseSpeed<1.0)

# 1641|               {

# 1642|->                 if (Stream_Offset_Max!=-1)

# 1643|                       GoTo(Stream_Offset_Max);

# 1644|                   else


Error: COMPILER_WARNING (CWE-563): [#def157]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dts::X96()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:1842:10: warning[-Wunused-variable]: unused variable ‘MaxSize’
# 1842 |     auto MaxSize=Element_Size-Element_Offset+3;
#      |          ^~~~~~~
# 1840|   {

# 1841|       //Coherency check

# 1842|->     auto MaxSize=Element_Size-Element_Offset+3;

# 1843|       if (Element_Code)

# 1844|       {


Error: COMPILER_WARNING (CWE-563): [#def158]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dts::XLL()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:1924:12: warning[-Wunused-variable]: unused variable ‘ChSetHeaderSize’
# 1924 |     int16u ChSetHeaderSize;
#      |            ^~~~~~~~~~~~~~~
# 1922|       // Parsing

# 1923|       int32u LLFrameSize;

# 1924|->     int16u ChSetHeaderSize;

# 1925|       int8u Bits4FrameFsize, NumChSetsInFrame, SegmentsInFrame, Bits4SSize, Bits4ChMask;

# 1926|       bool ScalableLSBs;


Error: COMPILER_WARNING (CWE-563): [#def159]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dts::XXCH()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:2120:11: warning[-Wunused-variable]: unused variable ‘HeaderSizeXXCH’
# 2120 |     int8u HeaderSizeXXCH, Bits4SpkrMaskXXCH, NumChSetsInXXCH;
#      |           ^~~~~~~~~~~~~~
# 2118|       vector<int16u> ChSetFsizeXXCHs;

# 2119|       int16u CoreSpkrActivityMask;

# 2120|->     int8u HeaderSizeXXCH, Bits4SpkrMaskXXCH, NumChSetsInXXCH;

# 2121|       bool bCRCPresent4ChSetHeaderXXCH;

# 2122|       auto Element_Offset_Start=Element_Offset;


Error: COMPILER_WARNING (CWE-195): [#def160]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dts::XCh()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:2207:44: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long long unsigned int’
# 2207 |     if (Size<95 || (Size!=MaxSize && Size-1!=MaxSize)) // Is last item and manage legacy bitstreams
#      |                                      ~~~~~~^~~~~~~~~
# 2205|       Peek_B2(Begin);

# 2206|       int16u Size=Begin>>6;

# 2207|->     if (Size<95 || (Size!=MaxSize && Size-1!=MaxSize)) // Is last item and manage legacy bitstreams

# 2208|           return;

# 2209|   


Error: COMPILER_WARNING (CWE-563): [#def161]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dts::XBR()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:2282:12: warning[-Wunused-variable]: unused variable ‘ChSetFsizeXXCHs_Total’
# 2282 |     int32u ChSetFsizeXXCHs_Total=0;
#      |            ^~~~~~~~~~~~~~~~~~~~~
# 2280|       Skip_B2 (                                                   "CRC16Header"); Param_Info1("OK");

# 2281|       Element_End0();

# 2282|->     int32u ChSetFsizeXXCHs_Total=0;

# 2283|       for (auto ChSetFsize : ChSetFsizes)

# 2284|           ChSetFsizes_Total+=ChSetFsize;


Error: COMPILER_WARNING (CWE-843): [#def162]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘int MediaInfoLib::File_DtsUhd::ResolveAudPresParams()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:268:15: warning[-Wclass-memaccess]: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct MediaInfoLib::File_DtsUhd::UHDAudPresParam’; use assignment or value-initialization instead
#  268 |         memset(AudPresParam, 0, sizeof(AudPresParam[0])*NumAudioPres);
#      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:27: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.h:86:12: note: ‘struct MediaInfoLib::File_DtsUhd::UHDAudPresParam’ declared here
#   86 |     struct UHDAudPresParam
#      |            ^~~~~~~~~~~~~~~
#  266|               Get_VR (Table, NumAudioPres,                        "NumAudioPres");
#  267|           NumAudioPres++;
#  268|->         memset(AudPresParam, 0, sizeof(AudPresParam[0])*NumAudioPres);
#  269|       }
#  270|   

Error: COMPILER_WARNING (CWE-195): [#def163]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:271:36: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘ZenLib::int32u’ {aka ‘unsigned int’}
#  271 |     for (int AuPresInd=0; AuPresInd<NumAudioPres; AuPresInd++)
#      |                           ~~~~~~~~~^~~~~~~~~~~~~
#  269|       }
#  270|   
#  271|->     for (int AuPresInd=0; AuPresInd<NumAudioPres; AuPresInd++)
#  272|       {
#  273|           Element_Begin1("AudPres");

Error: COMPILER_WARNING (CWE-195): [#def164]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘int MediaInfoLib::File_DtsUhd::NaviFindIndex(int, ZenLib::int32u*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:436:23: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int32u’ {aka ‘unsigned int’} and ‘int’
#  436 |         if (Navi.Index==DesiredIndex)
#      |             ~~~~~~~~~~^~~~~~~~~~~~~~
#  434|       for (auto& Navi : Audio_Chunks)
#  435|       {
#  436|->         if (Navi.Index==DesiredIndex)
#  437|           {
#  438|               Navi.Present=true;

Error: COMPILER_WARNING (CWE-195): [#def165]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:452:14: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<MediaInfoLib::File_DtsUhd::audio_chunk>::size_type’ {aka ‘long unsigned int’}
#  452 |     if (Index>=Audio_Chunks.size())
#      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~
#  450|       }
#  451|   
#  452|->     if (Index>=Audio_Chunks.size())
#  453|           Audio_Chunks.push_back(audio_chunk());
#  454|   

Error: CPPCHECK_WARNING (CWE-686): [#def166]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:475: error[invalidFunctionArgBool]: Invalid resize() argument nr 1. A non-boolean value is required.
#  473|       ChunkBytes = 0;
#  474|       if (FullChannelBasedMixFlag)
#  475|->         MD_Chunks.resize(SyncFrameFlag);
#  476|       else
#  477|       {

Error: COMPILER_WARNING (CWE-195): [#def167]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘int MediaInfoLib::File_DtsUhd::ExtractMDChunkObjIDList(MD01*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:551:24: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘ZenLib::int32u’ {aka ‘unsigned int’}
#  551 |         for (int i=0; i<MD01->NumObjects; i++)
#      |                       ~^~~~~~~~~~~~~~~~~
#  549|           constexpr int8u Table[4] = {3, 4, 6, 8};
#  550|           Get_VR (Table, MD01->NumObjects,                        "NumObjects");
#  551|->         for (int i=0; i<MD01->NumObjects; i++)
#  552|           {
#  553|               bool NumBitsforObjID_b;

Error: COMPILER_WARNING (CWE-195): [#def168]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘int MediaInfoLib::File_DtsUhd::ExtractMultiFrameDistribStaticMD(MD01*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:677:30: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘ZenLib::int32u’ {aka ‘unsigned int’}
#  677 |     if (MD01->PacketsAcquired<MD01->NumStaticMDPackets)
#      |         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
#  675|       }
#  676|   
#  677|->     if (MD01->PacketsAcquired<MD01->NumStaticMDPackets)
#  678|       {
#  679|           int n=MD01->PacketsAcquired*MD01->StaticMDPacketByteSize;

Error: COMPILER_WARNING (CWE-195): [#def169]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:686:34: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘ZenLib::int32u’ {aka ‘unsigned int’}
#  686 |         if (MD01->PacketsAcquired==MD01->NumStaticMDPackets || MD01->PacketsAcquired==1)
#      |             ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
#  684|           MD01->PacketsAcquired++;
#  685|   
#  686|->         if (MD01->PacketsAcquired==MD01->NumStaticMDPackets || MD01->PacketsAcquired==1)
#  687|           {
#  688|               if (MD01->StaticMetadataUpdtFlag||!MD01->StaticMDParamsExtracted)

Error: COMPILER_WARNING (CWE-195): [#def170]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:719:76: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘ZenLib::int32u’ {aka ‘unsigned int’}
#  719 |                 auto Result=ParseStaticMDParams(MD01, MD01->PacketsAcquired!=MD01->NumStaticMDPackets);
#      |                                                       ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
#  717|                       BS_Begin();
#  718|                   }
#  719|->                 auto Result=ParseStaticMDParams(MD01, MD01->PacketsAcquired!=MD01->NumStaticMDPackets);
#  720|                   if (!MD01->Buffer.empty())
#  721|                   {

Error: COMPILER_WARNING (CWE-843): [#def171]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘int MediaInfoLib::File_DtsUhd::ParseMD01(MD01*, int)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:888:11: warning[-Wclass-memaccess]: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct MediaInfoLib::File_DtsUhd::MDObject’; use assignment or value-initialization instead
#  888 |     memset(MD01->Object, 0, sizeof(MD01->Object));
#      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.h:56:12: note: ‘struct MediaInfoLib::File_DtsUhd::MDObject’ declared here
#   56 |     struct MDObject
#      |            ^~~~~~~~
#  886|   
#  887|       /* Table 7-16: Object metadata. */
#  888|->     memset(MD01->Object, 0, sizeof(MD01->Object));
#  889|       if (!FullChannelBasedMixFlag)
#  890|       {

Error: COMPILER_WARNING (CWE-195): [#def172]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:897:20: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘ZenLib::int32u’ {aka ‘unsigned int’}
#  897 |     for (int i=0; i<MD01->NumObjects; i++)
#      |                   ~^~~~~~~~~~~~~~~~~
#  895|       }
#  896|   
#  897|->     for (int i=0; i<MD01->NumObjects; i++)
#  898|       {
#  899|           int32u Id = MD01->ObjectList[i];

Error: COMPILER_WARNING (CWE-195): [#def173]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘virtual bool MediaInfoLib::File_DtsUhd::Synched_Test()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:1448:30: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64u’ {aka ‘long long unsigned int’} and ‘int’
# 1448 |         if (Stream_Offset_Max!=-1 && File_Offset+Buffer_Offset==Stream_Offset_Max && File_Size!=-1)
#      |             ~~~~~~~~~~~~~~~~~^~~~
# 1446|       if (!Synched)
# 1447|       {
# 1448|->         if (Stream_Offset_Max!=-1 && File_Offset+Buffer_Offset==Stream_Offset_Max && File_Size!=-1)
# 1449|               Synched=true; // It is the file footer
# 1450|           return true;

Error: COMPILER_WARNING (CWE-195): [#def174]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:1448:95: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64u’ {aka ‘long long unsigned int’} and ‘int’
# 1448 |         if (Stream_Offset_Max!=-1 && File_Offset+Buffer_Offset==Stream_Offset_Max && File_Size!=-1)
#      |                                                                                      ~~~~~~~~~^~~~
# 1446|       if (!Synched)
# 1447|       {
# 1448|->         if (Stream_Offset_Max!=-1 && File_Offset+Buffer_Offset==Stream_Offset_Max && File_Size!=-1)
# 1449|               Synched=true; // It is the file footer
# 1450|           return true;

Error: COMPILER_WARNING (CWE-195): [#def175]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_DtsUhd::Data_Parse()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:1491:38: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64u’ {aka ‘long long unsigned int’} and ‘int’
# 1491 |                 if (Stream_Offset_Max!=-1)
#      |                     ~~~~~~~~~~~~~~~~~^~~~
# 1489|               if (!IsSub && Config->ParseSpeed<1.0)
# 1490|               {
# 1491|->                 if (Stream_Offset_Max!=-1)
# 1492|                       GoTo(Stream_Offset_Max);
# 1493|                   else

Error: COMPILER_WARNING (CWE-195): [#def176]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Iab.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Iab::Get_Plex(ZenLib::int8u, ZenLib::int32u&, const char*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Iab.cpp:792:17: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int32u’ {aka ‘unsigned int’} and ‘int’
#  792 |         if (Info!=(1<<Bits)-1 || Bits>=32)
#      |             ~~~~^~~~~~~~~~~~~
#  790|       {

#  791|           Peek_BS(Bits, Info);

#  792|->         if (Info!=(1<<Bits)-1 || Bits>=32)

#  793|           {

#  794|               Get_BS(Bits, Info, Name);


Error: COMPILER_WARNING (CWE-569): [#def177]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Mpega.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpega::Header_Encoders_Lame()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Mpega.cpp:1448:45: warning[-Wparentheses]: suggest parentheses around ‘&&’ within ‘||’
# 1448 |              ||  Tag[4]=='3' && Tag[8]>='0' && Tag[8]<='9')                                                     // v3.xy0-v3.xy9
#      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
# 1446|               if ( Tag[4]> '3'                                                                                    // v4 or more

# 1447|                || (Tag[4]=='3' && Tag[6]=='9')                                                                    // v3.9yz-v3.9yz

# 1448|->              ||  Tag[4]=='3' && Tag[8]>='0' && Tag[8]<='9')                                                     // v3.xy0-v3.xy9

# 1449|                   HasInfoTag=true;

# 1450|           }


Error: COMPILER_WARNING (CWE-563): [#def178]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_SmpteSt0337.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_SmpteSt0337::Data_Parse()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_SmpteSt0337.cpp:1273:22: warning[-Wunused-variable]: unused variable ‘changedMetadata_flag’
# 1273 |                 bool changedMetadata_flag=(data_type_dependent&1)?true:false;   //1-bit
#      |                      ^~~~~~~~~~~~~~~~~~~~
# 1271|                   bool format_flag=((data_type_dependent>>2)&1)?true:false;       //1-bit

# 1272|                   bool assemble_flag=((data_type_dependent>>1)&1)?true:false;     //1-bit

# 1273|->                 bool changedMetadata_flag=(data_type_dependent&1)?true:false;   //1-bit

# 1274|                   Param_Info1(Smpte_St0337_Adm_multiple_chunk_flag[multiple_chunk_flag]);

# 1275|                   int8u format_type=0, Track_ID=0, track_numbers=0, in_timeline_flag=0;


Error: COMPILER_WARNING (CWE-195): [#def179]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Usac::numPreRollFrames_Check(usac_config&, ZenLib::int32u, const std::string&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:1974:26: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int32u’ {aka ‘unsigned int’} and ‘int’
# 1974 |     if (numPreRollFrames != numPreRollFrames_Max)
#      |         ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
# 1972|       else

# 1973|           numPreRollFrames_Max = 1;

# 1974|->     if (numPreRollFrames != numPreRollFrames_Max)

# 1975|       {

# 1976|           auto Value = FieldName + " is " + to_string(numPreRollFrames) + " but ";


Error: COMPILER_WARNING (CWE-195): [#def180]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:1977:30: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int32u’ {aka ‘unsigned int’} and ‘int’
# 1977 |         if (numPreRollFrames > numPreRollFrames_Max)
#      |             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
# 1975|       {

# 1976|           auto Value = FieldName + " is " + to_string(numPreRollFrames) + " but ";

# 1977|->         if (numPreRollFrames > numPreRollFrames_Max)

# 1978|               Value += "<= ";

# 1979|           if (numPreRollFrames > 3)


Error: COMPILER_WARNING (CWE-195): [#def181]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:1990:42: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int32u’ {aka ‘unsigned int’} and ‘int’
# 1990 |                     if (numPreRollFrames < numPreRollFrames_Max)
#      |                         ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
# 1988|                   if (CurrentConf.harmonicSBR)

# 1989|                   {

# 1990|->                     if (numPreRollFrames < numPreRollFrames_Max)

# 1991|                           Value += " due to SBR with harmonic patching";

# 1992|                   }


Error: COMPILER_WARNING (CWE-195): [#def182]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:1999:98: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int32u’ {aka ‘unsigned int’} and ‘int’
# 1999 |         Fill_Conformance(numPreRollFramesConchString.c_str(), Value, bitset8(), numPreRollFrames > numPreRollFrames_Max ? Error : Warning);
#      |                                                                                 ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
# 1997|                   Value += " due to no SBR";

# 1998|           }

# 1999|->         Fill_Conformance(numPreRollFramesConchString.c_str(), Value, bitset8(), numPreRollFrames > numPreRollFrames_Max ? Error : Warning);

# 2000|       }

# 2001|   }


Error: COMPILER_WARNING (CWE-457): [#def183]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp: scope_hint: In member function ‘MediaInfoLib::File_Usac::UsacDecoderConfig()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:2383:17: warning[-Wmaybe-uninitialized]: ‘channelConfiguration_Orders_Max’ may be used uninitialized
# 2383 |                 if (channelConfiguration_Orders_Pos == channelConfiguration_Orders_Max || usacElementType != channelConfiguration_Orders[channelConfiguration_Orders_Pos])
#      |                 ^~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:2361:15: note: ‘channelConfiguration_Orders_Max’ was declared here
# 2361 |         int8u channelConfiguration_Orders_Max;
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2381|               if (CheckChannelConfiguration == 1 && usacElementType != ID_USAC_EXT)

# 2382|               {

# 2383|->                 if (channelConfiguration_Orders_Pos == channelConfiguration_Orders_Max || usacElementType != channelConfiguration_Orders[channelConfiguration_Orders_Pos])

# 2384|                       CheckChannelConfiguration = 2;

# 2385|                   else


Error: COMPILER_WARNING (CWE-457): [#def184]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:2383:17: warning[-Wmaybe-uninitialized]: ‘channelConfiguration_Orders_Pos’ may be used uninitialized
# 2383 |                 if (channelConfiguration_Orders_Pos == channelConfiguration_Orders_Max || usacElementType != channelConfiguration_Orders[channelConfiguration_Orders_Pos])
#      |                 ^~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:2360:15: note: ‘channelConfiguration_Orders_Pos’ was declared here
# 2360 |         int8u channelConfiguration_Orders_Pos;
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2381|               if (CheckChannelConfiguration == 1 && usacElementType != ID_USAC_EXT)

# 2382|               {

# 2383|->                 if (channelConfiguration_Orders_Pos == channelConfiguration_Orders_Max || usacElementType != channelConfiguration_Orders[channelConfiguration_Orders_Pos])

# 2384|                       CheckChannelConfiguration = 2;

# 2385|                   else


Error: CPPCHECK_WARNING (CWE-398): [#def185]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:2504: error[containerOutOfBounds]: Out of bounds access in expression 'ExpectedOrder.pop_back()' because 'ExpectedOrder' is empty.
# 2502|                   ExpectedOrder += ' ';

# 2503|               }

# 2504|->             ExpectedOrder.pop_back();

# 2505|               string ActualOrder;

# 2506|               for (auto usacElement : C.usacElements)


Error: COMPILER_WARNING (CWE-563): [#def186]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:3194:10: warning[-Wunused-variable]: unused variable ‘IsNOK’
# 3194 |     bool IsNOK=false;
#      |          ^~~~~
# 3192|           C.drcSetEffect |= (int8u)drcSetEffect; // We need only the 8 first bits

# 3193|       #endif

# 3194|->     bool IsNOK=false;

# 3195|       if ((drcSetEffect & (3<<10)) == 0)

# 3196|       {


Error: COMPILER_WARNING (CWE-195): [#def187]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp: scope_hint: In member function ‘bool MediaInfoLib::File_Usac::drcInstructionsUniDrc(bool, bool)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:3250:41: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int8s’ {aka ‘signed char’} and ‘std::vector<MediaInfoLib::File_Usac::gain_set>::size_type’ {aka ‘long unsigned int’}
# 3250 |         int8u bandCount=V1?(gainSetIndex<C.gainSets.size()?C.gainSets[gainSetIndex].bandCount:0):1;
#      |                             ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
# 3248|           Element_Begin1("DrcChannel");

# 3249|           int8s gainSetIndex=*DrcChannelGroup-1;

# 3250|->         int8u bandCount=V1?(gainSetIndex<C.gainSets.size()?C.gainSets[gainSetIndex].bandCount:0):1;

# 3251|           for (int8u k=0; k<bandCount; k++)

# 3252|           {


Error: COMPILER_WARNING (CWE-563): [#def188]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp: scope_hint: In member function ‘bool MediaInfoLib::File_Usac::loudnessInfo(bool, bool)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:3501:15: warning[-Wunused-variable]: unused variable ‘Size’
# 3501 |         int8u Size;
#      |               ^~~~
# 3499|           int8u methodDefinition, methodValue, measurementSystem, reliability;

# 3500|           Get_S1 (4, methodDefinition,                            "methodDefinition"); Param_Info1C(methodDefinition && methodDefinition<=LoudnessMeaning_Size, LoudnessMeaning[methodDefinition-1]);

# 3501|->         int8u Size;

# 3502|           if (methodDefinition>=methodDefinition_Format_Size)

# 3503|           {


Error: COMPILER_WARNING (CWE-457): [#def189]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp: scope_hint: In member function ‘MediaInfoLib::File_Usac::pvcEnvelope(bool)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:4772:26: warning[-Wmaybe-uninitialized]: ‘num_grid_info’ may be used uninitialized
# 4772 |         for (int8u i=0; i<num_grid_info; i++)
#      |                         ~^~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:4753:15: note: ‘num_grid_info’ was declared here
# 4753 |         int8u num_grid_info;
#      |               ^~~~~~~~~~~~~
# 4770|           }

# 4771|   

# 4772|->         for (int8u i=0; i<num_grid_info; i++)

# 4773|           {

# 4774|               bool grid_info;


Error: COMPILER_WARNING (CWE-457): [#def190]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp: scope_hint: In member function ‘MediaInfoLib::File_Usac::EcDataPair(MediaInfoLib::File_Usac::ec_data_type, unsigned char, unsigned char, unsigned char, bool, bool, bool)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:5626:23: warning[-Wmaybe-uninitialized]: ‘numQuantSteps’ may be used uninitialized
# 5626 |         GroupedPcmData(dataType, bsDataPairXXX, numQuantSteps, dataBands);
#      |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:5609:11: note: ‘numQuantSteps’ was declared here
# 5609 |     int8u numQuantSteps;
#      |           ^~~~~~~~~~~~~
# 5624|   

# 5625|       TESTELSE_SB_SKIP(                                           "bsPcmCodingXXX[paramIdx][setIdx]");

# 5626|->         GroupedPcmData(dataType, bsDataPairXXX, numQuantSteps, dataBands);

# 5627|       TESTELSE_SB_ELSE(                                           "bsPcmCodingXXX[paramIdx][setIdx]");

# 5628|           DiffHuffData(dataType, bsDataPairXXX, !usacIndependencyFlag || setIdx, dataBands);


Error: COMPILER_WARNING (CWE-195): [#def191]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Usac::escapedValue(ZenLib::int32u&, ZenLib::int8u, ZenLib::int8u, ZenLib::int8u, const char*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:6072:14: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int32u’ {aka ‘unsigned int’} and ‘int’
# 6072 |     if (Value==((1<<nBits1)-1))
#      |         ~~~~~^~~~~~~~~~~~~~~~~
# 6070|       Element_Begin1(Name);

# 6071|       Get_S4(nBits1, Value,                                       "nBits1");

# 6072|->     if (Value==((1<<nBits1)-1))

# 6073|       {

# 6074|           int32u ValueAdd;


Error: COMPILER_WARNING (CWE-195): [#def192]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp:6077:31: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int32u’ {aka ‘unsigned int’} and ‘int’
# 6077 |         if (nBits3 && ValueAdd==((1<<nBits2)-1))
#      |                       ~~~~~~~~^~~~~~~~~~~~~~~~~
# 6075|           Get_S4(nBits2, ValueAdd,                                "nBits2");

# 6076|           Value+=ValueAdd;

# 6077|->         if (nBits3 && ValueAdd==((1<<nBits2)-1))

# 6078|           {

# 6079|               Get_S4(nBits3, ValueAdd,                            "nBits3");


Error: COMPILER_WARNING (CWE-563): [#def193]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Export/Export_EbuCore.cpp: scope_hint: In function ‘void MediaInfoLib::EbuCore_Transform_AcquisitionMetadata(Node*, MediaInfo_Internal&, size_t, Export_EbuCore::version, Export_EbuCore::acquisitiondataoutputmode)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Export/Export_EbuCore.cpp:1312:12: warning[-Wunused-variable]: unused variable ‘FrameCount’
# 1312 |     int64u FrameCount=MI.Get(Stream_Other, StreamPos, Other_FrameCount).To_int64u();
#      |            ^~~~~~~~~~
# 1310|       if (FrameRate)

# 1311|          EbuCore_WithFactor(Child, "ebucore:acquisitionFrameRate", FrameRate_String, FrameRate_Num_String, FrameRate_Den_String);

# 1312|->     int64u FrameCount=MI.Get(Stream_Other, StreamPos, Other_FrameCount).To_int64u();

# 1313|   

# 1314|       vector<size_t> Lines_Unique;


Error: COMPILER_WARNING (CWE-563): [#def194]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Export/Export_Mpeg7.cpp: scope_hint: In function ‘void MediaInfoLib::Mpeg7_Create_StreamID(Node*, bool, MediaInfo_Internal&, stream_t, size_t)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Export/Export_Mpeg7.cpp:1666:14: warning[-Wunused-variable]: unused variable ‘Pos2’
# 1666 |         auto Pos2=Sub.find(__T('-'));
#      |              ^~~~
# 1664|           Main=StreamID.substr(0, Pos);

# 1665|           Sub=StreamID.substr(Pos+1);

# 1666|->         auto Pos2=Sub.find(__T('-'));

# 1667|           if (Pos!=(size_t)-1)

# 1668|               Sub.resize(Pos); // Removing other subIDs


Error: COMPILER_WARNING (CWE-563): [#def195]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Export/Export_Mpeg7.cpp: scope_hint: In member function ‘ZenLib::Ztring MediaInfoLib::Export_Mpeg7::Transform(MediaInfoLib::MediaInfo_Internal&, size_t)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Export/Export_Mpeg7.cpp:2737:11: warning[-Wunused-variable]: unused variable ‘Node_Type’
# 2737 |     Node* Node_Type;
#      |           ^~~~~~~~~
# 2735|       //MultimediaContent

# 2736|       Node* Node_MultimediaContent;

# 2737|->     Node* Node_Type;

# 2738|       auto Collection_Display=Config.Collection_Display_Get();

# 2739|       if (Collection_Display>=display_if::Always || (Collection_Display>display_if::Never && MI.Get(Stream_General, 0, General_Format).find(__T("DVD Video"))!=string::npos && (Collection_Display>=display_if::Supported || MI.Count_Get(Stream_Menu)>1)))


Error: COMPILER_WARNING (CWE-563): [#def196]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Buffer.cpp: scope_hint: In member function ‘void MediaInfoLib::File__Analyze::Get_ES(ZenLib::int64s&, const char*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Buffer.cpp:1135:12: warning[-Wunused-variable]: unused variable ‘Remain’
# 1135 |     size_t Remain=BS->Remain();
#      |            ^~~~~~
# 1133|           Peek_BS(Size, Size_Mark);

# 1134|       }

# 1135|->     size_t Remain=BS->Remain();

# 1136|       BS_End();

# 1137|   


Error: COMPILER_WARNING (CWE-563): [#def197]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Buffer.cpp: scope_hint: In member function ‘void MediaInfoLib::File__Analyze::Get_VS(ZenLib::int64u&, const char*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Buffer.cpp:1224:12: warning[-Wunused-variable]: unused variable ‘Remain’
# 1224 |     size_t Remain=BS->Remain();
#      |            ^~~~~~
# 1222|       }

# 1223|       while (more_data && Size<=8 && BS->Remain());

# 1224|->     size_t Remain=BS->Remain();

# 1225|       BS_End();

# 1226|   


Error: COMPILER_WARNING: [#def198]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams.cpp:424:20: warning: ‘DolbyVision_Compatibility’ initialized and declared ‘extern’
#  424 | extern const char* DolbyVision_Compatibility[] =
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
#  422|   

#  423|   //---------------------------------------------------------------------------

#  424|-> extern const char* DolbyVision_Compatibility[] =

#  425|   {

#  426|       "",


Error: COMPILER_WARNING: [#def199]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams.cpp:507:20: warning: ‘DolbyVision_Compression’ initialized and declared ‘extern’
#  507 | extern const char* DolbyVision_Compression[] =
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~
#  505|       Profile.append(DolbyVision_Profiles_Names+((size_t)j)*4, 4);

#  506|   }

#  507|-> extern const char* DolbyVision_Compression[] =

#  508|   {

#  509|       "None",


Error: COMPILER_WARNING (CWE-483): [#def200]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams.cpp: scope_hint: In member function ‘size_t MediaInfoLib::File__Analyze::Merge(MediaInfoLib::File__Analyze&, MediaInfoLib::stream_t, size_t, size_t, bool)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams.cpp:2456:9: warning[-Wmisleading-indentation]: this ‘for’ clause does not guard...
# 2456 |         for (size_t i=0; i<4; i++)
#      |         ^~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams.cpp:2478:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
# 2478 |             if (!IsOkGlobal)
#      |             ^~
# 2454|           bool IsOkGlobal=true;

# 2455|           static audio AudioField[4]={ Audio_Channel_s_, Audio_ChannelLayout, Audio_ChannelPositions, Audio_ChannelPositions_String2 };

# 2456|->         for (size_t i=0; i<4; i++)

# 2457|               if (!Channels_Temp[i].empty())

# 2458|               {


Error: COMPILER_WARNING (CWE-563): [#def201]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams_Finish.cpp: scope_hint: In function ‘void MediaInfoLib::Merge_FillTimeCode(File__Analyze&, const std::string&, const ZenLib::TimeCode&, float, bool, ZenLib::TimeCode::rounding, ZenLib::int32u)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams_Finish.cpp:161:14: warning[-Wunused-but-set-variable]: variable ‘IsRounded’ set but not used
#  161 |         bool IsRounded=false;
#      |              ^~~~~~~~~
#  159|           constexpr TimeCode::rounding TC_Frames_Sub_Rounding=TimeCode::Ceil;

#  160|           TimeCode TC_Frames_Sub=TC_Time.ToRescaled(FramesPerSecondI*100-1, TimeCode::DropFrame(DropFrame).FPS1001(FramesPerSecondI!=FramesPerSecondF), TC_Frames_Sub_Rounding);

#  161|->         bool IsRounded=false;

#  162|           if (TC_Frames_Sub_Rounding==TimeCode::Floor)

#  163|           {


Error: COMPILER_WARNING (CWE-563): [#def202]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams_Finish.cpp: scope_hint: In member function ‘void MediaInfoLib::File__Analyze::Streams_Finish_StreamOnly(MediaInfoLib::stream_t, size_t)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams_Finish.cpp:928:31: warning[-Wunused-variable]: unused variable ‘VI_D_Text’
#  928 |             static const auto VI_D_Text=__T("VI-D");
#      |                               ^~~~~~~~~
#  926|               static const auto HI_D_Text=__T("HI-D");

#  927|               static const auto VI_ME_Text=__T("VI-ME");

#  928|->             static const auto VI_D_Text=__T("VI-D");

#  929|               for (size_t i=0; i<List.size(); i++)

#  930|               {


Error: COMPILER_WARNING (CWE-457): [#def203]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams_Finish.cpp:1358:20: warning[-Wmaybe-uninitialized]: ‘OtherID_Count’ may be used uninitialized
# 1358 |             size_t OtherID_Count;
#      |                    ^~~~~~~~~~~~~
# 1356|           for (size_t i=Pos+1; i<Count_Get(Stream_Audio);)

# 1357|           {

# 1358|->             size_t OtherID_Count;

# 1359|               Ztring OtherStreamOrder;

# 1360|               Ztring OtherID;


Error: COMPILER_WARNING (CWE-563): [#def204]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams_Finish.cpp: scope_hint: In member function ‘void MediaInfoLib::File__Analyze::Streams_Finish_StreamOnly_Audio(size_t)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams_Finish.cpp:1583:37: warning[-Wunused-variable]: unused variable ‘Places_Size’
# 1583 |             static constexpr size_t Places_Size=sizeof(Places)/sizeof(decltype(*Places));
#      |                                     ^~~~~~~~~~~
# 1581|           {

# 1582|               static const char* const Places[]={ "ChannelLayout", "BedChannelConfiguration" };

# 1583|->             static constexpr size_t Places_Size=sizeof(Places)/sizeof(decltype(*Places));

# 1584|               for (const auto Place : Places)

# 1585|               {


Error: COMPILER_WARNING (CWE-569): [#def205]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfoList_Internal.cpp: scope_hint: In member function ‘size_t MediaInfoLib::MediaInfoList_Internal::Open(const MediaInfoLib::String&, MediaInfoLib::fileoptions_t)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfoList_Internal.cpp:104:53: warning[-Wparentheses]: suggest parentheses around ‘&&’ within ‘||’
#  104 |                     if (Extension_Pos!=string::npos && ExtensionsList.find(Name.substr(Extension_Pos+1))==ExtensionsList.end()
#      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  102|                       const Ztring& Name=List[i];

#  103|                       size_t Extension_Pos=Name.rfind(__T('.'));

#  104|->                     if (Extension_Pos!=string::npos && ExtensionsList.find(Name.substr(Extension_Pos+1))==ExtensionsList.end()

#  105|                        || Extension_Pos==string::npos && !AcceptNoExtension)

#  106|                               List.erase(List.begin()+i);


Error: COMPILER_WARNING (CWE-563): [#def206]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp: scope_hint: In function ‘ZenLib::Ztring MediaInfoLib::HighestFormat(stream_t, size_t, const ZenLib::ZtringList&, bool&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:558:24: warning[-Wunused-variable]: unused variable ‘EAC3JOC’
#  558 |     static const Char* EAC3JOC=__T("E-AC-3 JOC");
#      |                        ^~~~~~~
#  556|       static const Char* EAC3=__T("E-AC-3");

#  557|       static const Char* EAC3Dep=__T("E-AC-3+Dep");

#  558|->     static const Char* EAC3JOC=__T("E-AC-3 JOC");

#  559|       static const Char* AAC=__T("AAC");

#  560|       static const Char* AACLC=__T("AAC LC");


Error: COMPILER_WARNING (CWE-563): [#def207]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:560:24: warning[-Wunused-variable]: unused variable ‘AACLC’
#  560 |     static const Char* AACLC=__T("AAC LC");
#      |                        ^~~~~
#  558|       static const Char* EAC3JOC=__T("E-AC-3 JOC");

#  559|       static const Char* AAC=__T("AAC");

#  560|->     static const Char* AACLC=__T("AAC LC");

#  561|       static const Char* AACLTP=__T("AAC LTP");

#  562|       static const Char* AACMain=__T("AAC Main");


Error: COMPILER_WARNING (CWE-563): [#def208]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:561:24: warning[-Wunused-variable]: unused variable ‘AACLTP’
#  561 |     static const Char* AACLTP=__T("AAC LTP");
#      |                        ^~~~~~
#  559|       static const Char* AAC=__T("AAC");

#  560|       static const Char* AACLC=__T("AAC LC");

#  561|->     static const Char* AACLTP=__T("AAC LTP");

#  562|       static const Char* AACMain=__T("AAC Main");

#  563|       static const Char* AACSSR=__T("AAC SSR");


Error: COMPILER_WARNING (CWE-563): [#def209]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:562:24: warning[-Wunused-variable]: unused variable ‘AACMain’
#  562 |     static const Char* AACMain=__T("AAC Main");
#      |                        ^~~~~~~
#  560|       static const Char* AACLC=__T("AAC LC");

#  561|       static const Char* AACLTP=__T("AAC LTP");

#  562|->     static const Char* AACMain=__T("AAC Main");

#  563|       static const Char* AACSSR=__T("AAC SSR");

#  564|       static const Char* AACLCSBR=__T("AAC LC SBR");


Error: COMPILER_WARNING (CWE-563): [#def210]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:563:24: warning[-Wunused-variable]: unused variable ‘AACSSR’
#  563 |     static const Char* AACSSR=__T("AAC SSR");
#      |                        ^~~~~~
#  561|       static const Char* AACLTP=__T("AAC LTP");

#  562|       static const Char* AACMain=__T("AAC Main");

#  563|->     static const Char* AACSSR=__T("AAC SSR");

#  564|       static const Char* AACLCSBR=__T("AAC LC SBR");

#  565|       static const Char* AACLCSBRPS=__T("AAC LC SBR PS");


Error: COMPILER_WARNING (CWE-563): [#def211]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:564:24: warning[-Wunused-variable]: unused variable ‘AACLCSBR’
#  564 |     static const Char* AACLCSBR=__T("AAC LC SBR");
#      |                        ^~~~~~~~
#  562|       static const Char* AACMain=__T("AAC Main");

#  563|       static const Char* AACSSR=__T("AAC SSR");

#  564|->     static const Char* AACLCSBR=__T("AAC LC SBR");

#  565|       static const Char* AACLCSBRPS=__T("AAC LC SBR PS");

#  566|       static const Char* Core=__T("Core");


Error: COMPILER_WARNING (CWE-563): [#def212]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:565:24: warning[-Wunused-variable]: unused variable ‘AACLCSBRPS’
#  565 |     static const Char* AACLCSBRPS=__T("AAC LC SBR PS");
#      |                        ^~~~~~~~~~
#  563|       static const Char* AACSSR=__T("AAC SSR");

#  564|       static const Char* AACLCSBR=__T("AAC LC SBR");

#  565|->     static const Char* AACLCSBRPS=__T("AAC LC SBR PS");

#  566|       static const Char* Core=__T("Core");

#  567|       static const Char* Discrete=__T("ES Discrete without ES Matrix");


Error: COMPILER_WARNING (CWE-563): [#def213]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:571:24: warning[-Wunused-variable]: unused variable ‘ERAACLC’
#  571 |     static const Char* ERAACLC=__T("ER AAC LC");
#      |                        ^~~~~~~
#  569|       static const Char* DTS=__T("DTS");

#  570|       static const Char* ERAAC=__T("ER AAC");

#  571|->     static const Char* ERAACLC=__T("ER AAC LC");

#  572|       static const Char* ERAACLTP=__T("ER AAC LTP");

#  573|       static const Char* ERAACScalable=__T("ER AAC scalable");


Error: COMPILER_WARNING (CWE-563): [#def214]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:572:24: warning[-Wunused-variable]: unused variable ‘ERAACLTP’
#  572 |     static const Char* ERAACLTP=__T("ER AAC LTP");
#      |                        ^~~~~~~~
#  570|       static const Char* ERAAC=__T("ER AAC");

#  571|       static const Char* ERAACLC=__T("ER AAC LC");

#  572|->     static const Char* ERAACLTP=__T("ER AAC LTP");

#  573|       static const Char* ERAACScalable=__T("ER AAC scalable");

#  574|       static const Char* ESMatrix=__T("ES Matrix");


Error: COMPILER_WARNING (CWE-563): [#def215]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:573:24: warning[-Wunused-variable]: unused variable ‘ERAACScalable’
#  573 |     static const Char* ERAACScalable=__T("ER AAC scalable");
#      |                        ^~~~~~~~~~~~~
#  571|       static const Char* ERAACLC=__T("ER AAC LC");

#  572|       static const Char* ERAACLTP=__T("ER AAC LTP");

#  573|->     static const Char* ERAACScalable=__T("ER AAC scalable");

#  574|       static const Char* ESMatrix=__T("ES Matrix");

#  575|       static const Char* ESDiscrete=__T("ES Discrete");


Error: COMPILER_WARNING (CWE-563): [#def216]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:592:24: warning[-Wunused-variable]: unused variable ‘NonCore’
#  592 |     static const Char* NonCore=__T("non-core");
#      |                        ^~~~~~~
#  590|       static const Char* MLP=__T("MLP");

#  591|       static const Char* MLPFBA=__T("MLP FBA");

#  592|->     static const Char* NonCore=__T("non-core");

#  593|       static const Char* Scalable=__T("scalable");

#  594|       static const Char* SSR=__T("SSR");


Error: COMPILER_WARNING (CWE-563): [#def217]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:596:24: warning[-Wunused-variable]: unused variable ‘XCh’
#  596 |     static const Char* XCh=__T("XCh");
#      |                        ^~~
#  594|       static const Char* SSR=__T("SSR");

#  595|       static const Char* XBR=__T("XBR");

#  596|->     static const Char* XCh=__T("XCh");

#  597|       static const Char* XCH=__T("XCH");

#  598|       static const Char* XXCh=__T("XXCh");


Error: COMPILER_WARNING (CWE-563): [#def218]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:597:24: warning[-Wunused-variable]: unused variable ‘XCH’
#  597 |     static const Char* XCH=__T("XCH");
#      |                        ^~~
#  595|       static const Char* XBR=__T("XBR");

#  596|       static const Char* XCh=__T("XCh");

#  597|->     static const Char* XCH=__T("XCH");

#  598|       static const Char* XXCh=__T("XXCh");

#  599|       static const Char* XXCH=__T("XXCH");


Error: COMPILER_WARNING (CWE-563): [#def219]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:598:24: warning[-Wunused-variable]: unused variable ‘XXCh’
#  598 |     static const Char* XXCh=__T("XXCh");
#      |                        ^~~~
#  596|       static const Char* XCh=__T("XCh");

#  597|       static const Char* XCH=__T("XCH");

#  598|->     static const Char* XXCh=__T("XXCh");

#  599|       static const Char* XXCH=__T("XXCH");

#  600|       static const Char* X96=__T("X96");


Error: COMPILER_WARNING (CWE-563): [#def220]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp: scope_hint: In member function ‘ZenLib::Ztring MediaInfoLib::MediaInfo_Internal::Get(MediaInfoLib::stream_t, size_t, size_t, MediaInfoLib::info_t)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:1946:28: warning[-Wunused-variable]: unused variable ‘Temp_Size’
# 1946 |                     size_t Temp_Size=Temp.size();
#      |                            ^~~~~~~~~
# 1944|                       if (i)

# 1945|                           Temp+=__T(" / ");

# 1946|->                     size_t Temp_Size=Temp.size();

# 1947|                       Temp+=Get(StreamKind2, i, Parameter2, Info_Text);

# 1948|                   }


Error: COMPILER_WARNING (CWE-563): [#def221]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:1968:28: warning[-Wunused-variable]: unused variable ‘Temp_Size’
# 1968 |                     size_t Temp_Size=Temp.size();
#      |                            ^~~~~~~~~
# 1966|                       if (i)

# 1967|                           Temp+=__T(" / ");

# 1968|->                     size_t Temp_Size=Temp.size();

# 1969|                       Temp+=Get(StreamKind2, i, Parameter2, Info_Text);

# 1970|                   }


Error: COMPILER_WARNING (CWE-563): [#def222]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:1989:28: warning[-Wunused-variable]: unused variable ‘Temp_Size’
# 1989 |                     size_t Temp_Size=Temp.size();
#      |                            ^~~~~~~~~
# 1987|                       if (i)

# 1988|                           Temp+=__T(" / ");

# 1989|->                     size_t Temp_Size=Temp.size();

# 1990|                       Temp+=Get(StreamKind2, i, Parameter2, Info_Text);

# 1991|                       Ztring Hint=Get(StreamKind2, i, File__Analyze::Fill_Parameter(StreamKind2, Generic_CodecID_Hint), Info_Text);


Error: COMPILER_WARNING (CWE-563): [#def223]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:2017:28: warning[-Wunused-variable]: unused variable ‘Temp_Size’
# 2017 |                     size_t Temp_Size=Temp.size();
#      |                            ^~~~~~~~~
# 2015|                       if (i)

# 2016|                           Temp+=__T(" / ");

# 2017|->                     size_t Temp_Size=Temp.size();

# 2018|                       Temp+=Get(StreamKind2, i, Parameter2, Info_Text);

# 2019|                   }


Error: COMPILER_WARNING (CWE-1023): [#def224]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Ancillary.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Ancillary::Header_Parse()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Ancillary.cpp:532:12: warning[-Wswitch]: enumeration value ‘None’ not handled in switch
#  532 |     switch (Format)
#      |            ^
#  530|   void File_Ancillary::Header_Parse()

#  531|   {

#  532|->     switch (Format)

#  533|       {

#  534|       case Smpte2038:


Error: COMPILER_WARNING (CWE-563): [#def225]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif.cpp: scope_hint: At global scope
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif.cpp:183:21: warning[-Wunused-variable]: ‘MediaInfoLib::Dv_APT’ defined but not used
#  183 | static const char*  Dv_APT[] =
#      |                     ^~~~~~
#  181|   

#  182|   //---------------------------------------------------------------------------

#  183|-> static const char*  Dv_APT[] =

#  184|   {

#  185|       "IEC",


Error: COMPILER_WARNING (CWE-563): [#def226]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif.cpp: scope_hint: In member function ‘virtual bool MediaInfoLib::File_DvDif::Demux_UnpacketizeContainer_Test()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif.cpp:852:16: warning[-Wunused-variable]: unused variable ‘NextPTS’
#  852 |         int64u NextPTS=Speed_FrameCount_system[0]*100100000/3+Speed_FrameCount_system[1]*40000000;
#      |                ^~~~~~~
#  850|           FrameInfo.DTS=FrameInfo.PTS=Speed_FrameCount_system[0]*100100000/3+Speed_FrameCount_system[1]*40000000;

#  851|           Speed_FrameCount_system[system]++;

#  852|->         int64u NextPTS=Speed_FrameCount_system[0]*100100000/3+Speed_FrameCount_system[1]*40000000;

#  853|           Speed_FrameCount_system[system]--;

#  854|       #endif //MEDIAINFO_DVDIF_ANALYZE_YES


Error: COMPILER_WARNING (CWE-195): [#def227]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif_Analysis.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_DvDif::Read_Buffer_Continue()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif_Analysis.cpp:152:57: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64u’ {aka ‘long long unsigned int’} and ‘int’
#  152 |                         if (Speed_FrameCount_StartOffset==-1)
#      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
#  150|   

#  151|                           //Try to find a suitable and trustable Abst

#  152|->                         if (Speed_FrameCount_StartOffset==-1)

#  153|                               Speed_FrameCount_StartOffset=0;

#  154|                           int32s Abst_First=INT_MAX;


Error: COMPILER_WARNING (CWE-563): [#def228]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif_Analysis.cpp:156:32: warning[-Wunused-variable]: unused variable ‘Abst_Theory_Max’
#  156 |                         int32s Abst_Theory_Max=Abst_Previous+(DSF?12:10)*(FSC_WasSet?2:1)*2; //Max 2x the expected gap
#      |                                ^~~~~~~~~~~~~~~
#  154|                           int32s Abst_First=INT_MAX;

#  155|                           int32s Abst_Previous=(AbstBf_Previous>>1)&0x7FFFFF;

#  156|->                         int32s Abst_Theory_Max=Abst_Previous+(DSF?12:10)*(FSC_WasSet?2:1)*2; //Max 2x the expected gap

#  157|                           for (int i=0; i<2; i++)

#  158|                           {


Error: COMPILER_WARNING (CWE-563): [#def229]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif_Analysis.cpp:203:42: warning[-Wunused-variable]: unused variable ‘IsFound’
#  203 |                                     bool IsFound=false;
#      |                                          ^~~~~~~
#  201|                                           Abst-=Dseq_Offset/2+Dseq_Offset%2;

#  202|                                       }

#  203|->                                     bool IsFound=false;

#  204|                                       size_t k=0;

#  205|                                       for (; k<AbstBf_Current_Weighted.abst[j].size(); k++)


Error: COMPILER_WARNING (CWE-195): [#def230]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif_Analysis.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DvDif::Errors_Stats_Update()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif_Analysis.cpp:1820:43: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
# 1820 |                 if (Video_Errors_PerSta[i]==MaxStaErrors)
#      |                     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
# 1818|               bool Video_StaNonZero=false;

# 1819|               for (size_t i=0; i<16; i++)

# 1820|->                 if (Video_Errors_PerSta[i]==MaxStaErrors)

# 1821|                       Video_StaNonZero=true; // Only if all from the same STA value

# 1822|               size_t Audio_TotalErrors=0;


Error: COMPILER_WARNING (CWE-563): [#def231]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Dvdv.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dvdv::Get_Duration(ZenLib::TimeCode&, const ZenLib::Ztring&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Dvdv.cpp:1279:14: warning[-Wunused-variable]: unused variable ‘Drop’
# 1279 |         bool Drop=IFO_PlaybackTime_FrameRate[FrameRate]==30;
#      |              ^~~~
# 1277|           }

# 1278|           

# 1279|->         bool Drop=IFO_PlaybackTime_FrameRate[FrameRate]==30;

# 1280|           Duration=TimeCode((uint32_t)hh, (uint8_t)mm, (uint8_t)ss, (uint8_t)ff, IFO_PlaybackTime_FrameRate[FrameRate]-1);

# 1281|           Element_Info1(Duration.ToString());


Error: COMPILER_WARNING (CWE-569): [#def232]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mk::Segment_Attachments_AttachedFile_FileData()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.cpp:2589:57: warning[-Wparentheses]: suggest parentheses around ‘&&’ within ‘||’
# 2589 |     if ((Attachments_Demux || !CoverIsSetFromAttachment && CurrentAttachmentIsCover) && Element_TotalSize_Get()<=16*1024*1024) //TODO: option for setting the acceptable maximum size of the attachment
#      |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2587|   

# 2588|       //Parsing

# 2589|->     if ((Attachments_Demux || !CoverIsSetFromAttachment && CurrentAttachmentIsCover) && Element_TotalSize_Get()<=16*1024*1024) //TODO: option for setting the acceptable maximum size of the attachment

# 2590|       {

# 2591|           if (!Element_IsComplete_Get())


Error: COMPILER_WARNING (CWE-483): [#def233]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mk::Segment_Cluster_BlockGroup_Block()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.cpp:2882:37: warning[-Wmisleading-indentation]: this ‘else’ clause does not guard...
# 2882 |                                     else
#      |                                     ^~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.h:19: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze.h:559:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
#  559 |     #define Param_Info1(_A) Param_Info(_A)
#      |                             ^~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.cpp:2883:110: note: in expansion of macro ‘Param_Info1’
# 2883 |                                         Laces.push_back(Element_Size-Element_Offset-Element_Offset_Virtual); Param_Info1(Size); //last lace
#      |                                                                                                              ^~~~~~~~~~~
# 2880|                                           Laces.push_back(Element_Size - Element_Offset);

# 2881|                                       }

# 2882|->                                     else

# 2883|                                           Laces.push_back(Element_Size-Element_Offset-Element_Offset_Virtual); Param_Info1(Size); //last lace

# 2884|                                   }


Error: COMPILER_WARNING (CWE-843): [#def234]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__MultipleParsing.cpp:84: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.h: scope_hint: In constructor ‘MediaInfoLib::File_Mk::rawcookedtrack::rawcookedtrack()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.h:577:19: warning[-Wclass-memaccess]: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct MediaInfoLib::File_Mk::rawcookedtrack’; use assignment or value-initialization instead
#  577 |             memset(this, 0x00, sizeof(rawcookedtrack));
#      |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.h:558:12: note: ‘struct MediaInfoLib::File_Mk::rawcookedtrack’ declared here
#  558 |     struct rawcookedtrack
#      |            ^~~~~~~~~~~~~~
#  575|           rawcookedtrack()

#  576|           {

#  577|->             memset(this, 0x00, sizeof(rawcookedtrack));

#  578|           }

#  579|       };


Error: COMPILER_WARNING (CWE-1023): [#def235]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘AAC’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def236]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘ALS_Simple’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def237]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘AudioProfile_Max’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def238]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘Baseline_MPEG_Surround’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def239]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘Baseline_USAC’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def240]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘Extended_HE_AAC’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def241]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘High_Definition_AAC’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def242]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘High_Efficiency_AAC_v2’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def243]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘High_Efficiency_AAC’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def244]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘High_Quality_Audio’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def245]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘Low_Delay_AAC_v2’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def246]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘Low_Delay_AAC’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def247]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘Low_Delay_Audio’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def248]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘Main_Audio’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def249]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘Mobile_Audio_Internetworking’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def250]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘Natural_Audio’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def251]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp: scope_hint: In function ‘ZenLib::int8u MediaInfoLib::Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘NoProfile’ not handled in switch
#  332 |     switch (ToMatch.profile)
#      |            ^
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def252]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘Scalable_Audio’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def253]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘Speech_Audio’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def254]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘Synthesis_Audio’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-1023): [#def255]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp:332:12: warning[-Wswitch]: enumeration value ‘UnknownAudio’ not handled in switch
#  330|   int8u Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct& ToMatch)

#  331|   {

#  332|->     switch (ToMatch.profile)

#  333|       {

#  334|           case UnspecifiedAudio             : return 0xFE;


Error: COMPILER_WARNING (CWE-563): [#def256]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp:1982:12: warning[-Wunused-but-set-variable]: variable ‘Element_Size2’ set but not used
# 1982 |     int64u Element_Size2;
#      |            ^~~~~~~~~~~~~
# 1980|       }

# 1981|   

# 1982|->     int64u Element_Size2;

# 1983|       if (Stream_Temp.HasAtomStyle)

# 1984|       {


Error: COMPILER_WARNING (CWE-563): [#def257]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp:2208:38: warning[-Wunused-variable]: unused variable ‘Duration’
# 2208 |                                 auto Duration=(float)Stream.second.stts_Duration/Stream.second.mdhd_TimeScale;
#      |                                      ^~~~~~~~
# 2206|                                   auto FrameRateRatio=(float)Stream.second.stts_Duration/Stream.second.stts_FrameCount;

# 2207|                                   auto FrameRate=Stream.second.mdhd_TimeScale/FrameRateRatio;

# 2208|->                                 auto Duration=(float)Stream.second.stts_Duration/Stream.second.mdhd_TimeScale;

# 2209|                                   if (FrameRate)

# 2210|                                   {


Error: COMPILER_WARNING (CWE-1023): [#def258]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpeg4::mdat_xxxx()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp:2212:44: warning[-Wswitch]: enumeration value ‘config_probe_none’ not handled in switch
# 2212 |                                     switch (Probe.Start_Type) {
#      |                                            ^
# 2210|                                   {

# 2211|                                       auto Probe=Config->File_ProbeCaption_Get(ParserName);

# 2212|->                                     switch (Probe.Start_Type) {

# 2213|                                           case config_probe_dur:

# 2214|                                               ProbeCaption_mdatPos=Probe.Start*FrameRate;


Error: COMPILER_WARNING (CWE-1023): [#def259]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp:2225:44: warning[-Wswitch]: enumeration value ‘config_probe_none’ not handled in switch
# 2225 |                                     switch (Probe.Duration_Type) {
#      |                                            ^
# 2223|                                               break;

# 2224|                                       }

# 2225|->                                     switch (Probe.Duration_Type) {

# 2226|                                           case config_probe_dur:

# 2227|                                               ProbeCaption_mdatDur=Probe.Duration*FrameRate;


Error: COMPILER_WARNING (CWE-195): [#def260]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpeg4::meta_iprp_ipma()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp:2814:37: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<unsigned int> >::size_type’ {aka ‘long unsigned int’}
# 2814 |                 if (property_index-1>=meta_iprp_ipma_Entries.size())
#      |                     ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2812|               if (property_index)

# 2813|               {

# 2814|->                 if (property_index-1>=meta_iprp_ipma_Entries.size())

# 2815|                       meta_iprp_ipma_Entries.resize(property_index);

# 2816|                   std::vector<int32u>& Entry=meta_iprp_ipma_Entries[property_index-1];


Error: COMPILER_WARNING (CWE-563): [#def261]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp:8982:14: warning[-Wunused-variable]: unused variable ‘tkhd_SameID’
# 8982 |         bool tkhd_SameID=false;
#      |              ^~~~~~~~~~~
# 8980|       FILLING_BEGIN();

# 8981|           //Handle tracks with same ID than a previous track

# 8982|->         bool tkhd_SameID=false;

# 8983|           std::map<int32u, stream>::iterator PreviousTrack=Streams.find(moov_trak_tkhd_TrackID);

# 8984|           if (PreviousTrack!=Streams.end() && PreviousTrack->second.tkhd_Found)


Error: COMPILER_WARNING (CWE-670): [#def262]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpeg4::moov_trak_tkhd()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp:9025:34: warning[-Wint-in-bool-context]: ‘*’ in boolean context, suggest ‘&&’ instead
# 9025 |         if (moov_trak_tkhd_Height*d)
#      |             ~~~~~~~~~~~~~~~~~~~~~^~
# 9023|           Fill(StreamKind_Last, StreamPos_Last, General_ID, moov_trak_tkhd_TrackID, 10, true);

# 9024|           Streams[moov_trak_tkhd_TrackID].tkhd_Duration=Duration;

# 9025|->         if (moov_trak_tkhd_Height*d)

# 9026|               moov_trak_tkhd_DisplayAspectRatio=(moov_trak_tkhd_Width*a)/(moov_trak_tkhd_Height*d);

# 9027|           moov_trak_tkhd_Rotation=(float32)(std::atan2(b, a)*180.0/3.14159);


Error: COMPILER_WARNING (CWE-563): [#def263]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpeg4::moov_udta_thmb()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp:9801:12: warning[-Wunused-variable]: unused variable ‘MiOpenResult’
# 9801 |     size_t MiOpenResult = MI.Open(Buffer + (size_t)(Buffer_Offset + Element_Offset), (size_t)(Element_Size - Element_Offset), nullptr, 0, (size_t)(Element_Size - Element_Offset));
#      |            ^~~~~~~~~~~~
# 9799|       Ztring Demux_Save = MI.Option(__T("Demux_Get"), __T(""));

# 9800|       MI.Option(__T("Demux"), Ztring());

# 9801|->     size_t MiOpenResult = MI.Open(Buffer + (size_t)(Buffer_Offset + Element_Offset), (size_t)(Element_Size - Element_Offset), nullptr, 0, (size_t)(Element_Size - Element_Offset));

# 9802|       MI.Option(__T("Demux"), Demux_Save); //This is a global value, need to reset it. TODO: local value

# 9803|       if (MI.Count_Get(Stream_Image))


Error: COMPILER_WARNING (CWE-563): [#def264]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpeg4::moov_udta_xxxx()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp:9907:35: warning[-Wunused-variable]: unused variable ‘Index’
# 9907 |                             int8u Index=0;
#      |                                   ^~~~~
# 9905|                           if (name_space=="urn:mpeg:dash:role:2011")

# 9906|                           {

# 9907|->                             int8u Index=0;

# 9908|                                    if (value=="alternate")

# 9909|                               {


Error: COMPILER_WARNING (CWE-563): [#def265]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_MpegTs.cpp: scope_hint: In member function ‘void MediaInfoLib::File_MpegTs::Streams_Update_Programs_PerStream(size_t)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_MpegTs.cpp:858:26: warning[-Wunused-variable]: unused variable ‘Pos_FoundInID’
#  858 |                     bool Pos_FoundInID=false;
#      |                          ^~~~~~~~~~~~~
#  856|                       //Look for PresentationID in descriptor

#  857|                       size_t Pos=0;

#  858|->                     bool Pos_FoundInID=false;

#  859|                       for (;;)

#  860|                       {


Error: COMPILER_WARNING (CWE-563): [#def266]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg_Descriptors.cpp:2516:77: warning[-Wunused-variable]: unused variable ‘MaxCLL’
# 2516 |     int16u horizontal_size, vertical_size, Framerate_Numerator, Ppih, Plev, MaxCLL, MaxFALL;
#      |                                                                             ^~~~~~
# 2514|       //Parsing

# 2515|       int32u brat, max_buffer_size;

# 2516|->     int16u horizontal_size, vertical_size, Framerate_Numerator, Ppih, Plev, MaxCLL, MaxFALL;

# 2517|       int8u Interlace_Mode, Framerate_Denominator, Sample_Bitdepth, Sampling_Structure, descriptor_version, colour_primaries, transfer_characteristics, matrix_coefficients;

# 2518|       bool schar_Valid_Flag, video_full_range_flag, mdm_flag;


Error: COMPILER_WARNING (CWE-563): [#def267]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg_Descriptors.cpp:2516:85: warning[-Wunused-variable]: unused variable ‘MaxFALL’
# 2516 |     int16u horizontal_size, vertical_size, Framerate_Numerator, Ppih, Plev, MaxCLL, MaxFALL;
#      |                                                                                     ^~~~~~~
# 2514|       //Parsing

# 2515|       int32u brat, max_buffer_size;

# 2516|->     int16u horizontal_size, vertical_size, Framerate_Numerator, Ppih, Plev, MaxCLL, MaxFALL;

# 2517|       int8u Interlace_Mode, Framerate_Denominator, Sample_Bitdepth, Sampling_Structure, descriptor_version, colour_primaries, transfer_characteristics, matrix_coefficients;

# 2518|       bool schar_Valid_Flag, video_full_range_flag, mdm_flag;


Error: COMPILER_WARNING (CWE-681): [#def268]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg_Descriptors.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpeg_Descriptors::Descriptor_3F_14()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg_Descriptors.cpp:2589:43: warning[-Woverflow]: unsigned conversion from ‘int’ to ‘ZenLib::int8u’ {aka ‘unsigned char’} changes value from ‘1001’ to ‘233’
# 2589 |                     Framerate_Denominator=1001;
#      |                                           ^~~~
# 2587|                   {

# 2588|                       Framerate_Numerator*=1000;

# 2589|->                     Framerate_Denominator=1001;

# 2590|                   }

# 2591|                   Complete_Stream->Streams[elementary_PID]->Infos["FrameRate_Num"].From_Number(Framerate_Numerator);


Error: COMPILER_WARNING (CWE-563): [#def269]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg_Descriptors.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpeg_Descriptors::Descriptor_7F_19()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg_Descriptors.cpp:3446:15: warning[-Wunused-variable]: unused variable ‘preselection_id’
# 3446 |         int8u preselection_id;
#      |               ^~~~~~~~~~~~~~~
# 3444|           Element_Begin1("preselection");

# 3445|           Descriptor_7F_19_Info& Info=Infos[p];

# 3446|->         int8u preselection_id;

# 3447|           bool language_code_present, text_label_present, multi_stream_info_present, future_extension;

# 3448|           Get_S1 (5, Info.preselection_id,                        "preselection_id");


Error: COMPILER_WARNING (CWE-457): [#def270]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp: scope_hint: In member function ‘MediaInfoLib::File_Mxf::Streams_Finish_Essence(unsigned int, ZenLib::uint128)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:3077:13: warning[-Wmaybe-uninitialized]: ‘SDTI_TimeCode_StartTimecode_StreamPos_Last’ may be used uninitialized
# 3077 |         Fill(StreamKind_Last, SDTI_TimeCode_StartTimecode_StreamPos_Last, "Delay_SDTI", (int64s)TC.ToMilliseconds(), true, true);
#      |         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:2721:12: note: ‘SDTI_TimeCode_StartTimecode_StreamPos_Last’ was declared here
# 2721 |     size_t SDTI_TimeCode_StartTimecode_StreamPos_Last;
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3075|           if (FrameRate)

# 3076|               TC.SetFramesMax((int16u)(FrameRate-1));

# 3077|->         Fill(StreamKind_Last, SDTI_TimeCode_StartTimecode_StreamPos_Last, "Delay_SDTI", (int64s)TC.ToMilliseconds(), true, true);

# 3078|       }

# 3079|       if (!SystemScheme1s.empty() && !SystemScheme1s.begin()->second.TimeCodeArray_StartTimecodes.empty())


Error: COMPILER_WARNING (CWE-457): [#def271]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:3085:13: warning[-Wmaybe-uninitialized]: ‘SystemScheme1_TimeCodeArray_StartTimecode_StreamPos_Last’ may be used uninitialized
# 3085 |         Fill(StreamKind_Last, SystemScheme1_TimeCodeArray_StartTimecode_StreamPos_Last, "Delay_SystemScheme1", (int64s)TC.ToMilliseconds(), true, true);
#      |         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:2732:12: note: ‘SystemScheme1_TimeCodeArray_StartTimecode_StreamPos_Last’ was declared here
# 2732 |     size_t SystemScheme1_TimeCodeArray_StartTimecode_StreamPos_Last;
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3083|           if (FrameRate)

# 3084|               TC.SetFramesMax((int16u)(FrameRate-1));

# 3085|->         Fill(StreamKind_Last, SystemScheme1_TimeCodeArray_StartTimecode_StreamPos_Last, "Delay_SystemScheme1", (int64s)TC.ToMilliseconds(), true, true);

# 3086|       }

# 3087|   


Error: COMPILER_WARNING (CWE-563): [#def272]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mxf::Streams_Finish_Descriptor(ZenLib::int128u, ZenLib::int128u)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:3267:12: warning[-Wunused-but-set-variable]: variable ‘Before_Count’ set but not used
# 3267 |     size_t Before_Count[Stream_Max];
#      |            ^~~~~~~~~~~~
# 3265|   

# 3266|       //Locators

# 3267|->     size_t Before_Count[Stream_Max];

# 3268|       for (size_t Pos=0; Pos<Stream_Max; Pos++)

# 3269|           Before_Count[Pos]=(size_t)-1;


Error: COMPILER_WARNING (CWE-563): [#def273]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Mxf::Header_Parse()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:5719:12: warning[-Wunused-variable]: unused variable ‘Code_Compare3’
# 5719 |     int32u Code_Compare3=Code.lo>>32;
#      |            ^~~~~~~~~~~~~
# 5717|   

# 5718|       //Filling

# 5719|->     int32u Code_Compare3=Code.lo>>32;

# 5720|       bool IsFiller=(Code.hi>>24)==0x060E2B3401

# 5721|                 && (Code.lo==Elements::FillerData || Code.lo==Elements::TerminatingFillerData);


Error: COMPILER_WARNING (CWE-569): [#def274]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Mxf::Data_Parse()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:6187:59: warning[-Wparentheses]: suggest parentheses around ‘&&’ within ‘||’
# 6187 |                     if (Essence->second.Parsers.size()==1 && Descriptor->second.Infos["Format_Settings_Wrapping"].rfind(__T("Frame"), 0)==0 || Essence->second.Infos["Format_Settings_Wrapping"].rfind(__T("Frame"), 0)==0) //TODO: Parsers.size()==1 is for avoiding Dolby E issues, it should be fixed instead
#      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6185|                       if (Essence->second.Parsers.empty())

# 6186|                           ChooseParser__FromEssence(Essence, Descriptor); //Searching by the track identifier

# 6187|->                     if (Essence->second.Parsers.size()==1 && Descriptor->second.Infos["Format_Settings_Wrapping"].rfind(__T("Frame"), 0)==0 || Essence->second.Infos["Format_Settings_Wrapping"].rfind(__T("Frame"), 0)==0) //TODO: Parsers.size()==1 is for avoiding Dolby E issues, it should be fixed instead

# 6188|                           Essence->second.Parsers[0]->FrameIsAlwaysComplete=true;

# 6189|   


Error: COMPILER_WARNING (CWE-563): [#def275]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mxf::AES3PCMDescriptor()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:6829:37: warning[-Wunused-variable]: unused variable ‘Temp’
# 6829 |                         const char* Temp; \
#      |                                     ^~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:6896:5: note: in expansion of macro ‘ELEMENT’
# 6896 |     ELEMENT(3D08, AES3PCMDescriptor_AuxBitsMode)
#      |     ^~~~~~~
# 6827|       case 0x##_CODE :    { \

# 6828|                           std::map<int16u, int128u>::iterator Primer_Value=Primer_Values.find(0x##_CODE); \

# 6829|->                         const char* Temp; \

# 6830|                           if (Primer_Value!=Primer_Values.end()) { \

# 6831|                               auto Temp = Mxf_Param_Info((int32u)Primer_Value->second.hi, Primer_Value->second.lo); \


Error: COMPILER_WARNING (CWE-563): [#def276]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mxf::FileDescriptor_EssenceContainer()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:9406:15: warning[-Wunused-variable]: unused variable ‘Code8’
# 9406 |         int8u Code8=(int8u)((EssenceContainer.lo&0x00000000000000FFLL)    );
#      |               ^~~~~
# 9404|           int8u Code6=(int8u)((EssenceContainer.lo&0x0000000000FF0000LL)>>16);

# 9405|           int8u Code7=(int8u)((EssenceContainer.lo&0x000000000000FF00LL)>> 8);

# 9406|->         int8u Code8=(int8u)((EssenceContainer.lo&0x00000000000000FFLL)    );

# 9407|   

# 9408|           Descriptors[InstanceUID].EssenceContainer=EssenceContainer;


Error: COMPILER_WARNING (CWE-563): [#def277]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mxf::ChooseParser_Ffv1(const std::map<unsigned int, essence>::iterator&, const std::map<ZenLib::uint128, descriptor>::iterator&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:15117:24: warning[-Wunused-variable]: unused variable ‘Parser’
#15117 |         File__Analyze* Parser=NULL;
#      |                        ^~~~~~
#15115|       //Filling

#15116|       #if defined(MEDIAINFO_FFV1_YES)

#15117|->         File__Analyze* Parser=NULL;

#15118|           if (Descriptor!=Descriptors.end())

#15119|           {


Error: COMPILER_WARNING (CWE-569): [#def278]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mxf::ColorLevels_Compute(std::map<ZenLib::uint128, descriptor>::iterator, bool, ZenLib::int32u)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:15460:16: warning[-Wparentheses]: suggest parentheses around ‘&&’ within ‘||’
#15460 |     if (!Force && (Descriptor->second.MinRefLevel==(int32u)-1 || Descriptor->second.MaxRefLevel==(int32u)-1) || (Descriptor->second.Type!=descriptor::Type_RGBA && Descriptor->second.ColorRange==(int32u)-1))
#      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#15458|       }

#15459|   

#15460|->     if (!Force && (Descriptor->second.MinRefLevel==(int32u)-1 || Descriptor->second.MaxRefLevel==(int32u)-1) || (Descriptor->second.Type!=descriptor::Type_RGBA && Descriptor->second.ColorRange==(int32u)-1))

#15461|           return;

#15462|   


Error: COMPILER_WARNING (CWE-1023): [#def279]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp: scope_hint: In member function ‘virtual bool MediaInfoLib::File_Mxf::BookMark_Needed()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:15679:16: warning[-Wswitch]: enumeration value ‘config_probe_none’ not handled in switch
#15679 |         switch (Probe.Duration_Type) {
#      |                ^
#15677|               default:;

#15678|           }

#15679|->         switch (Probe.Duration_Type) {

#15680|               case config_probe_size:

#15681|                   ProbeCaptionByteDur=Probe.Duration;


Error: COMPILER_WARNING (CWE-563): [#def280]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:15696:14: warning[-Wunused-variable]: unused variable ‘CurrentEnd’
#15696 |         auto CurrentEnd=File_Offset+Buffer_Offset;
#      |              ^~~~~~~~~~
#15694|           }

#15695|           auto MaxOffset=ProbeCaptionBytePos+ProbeCaptionByteDur;

#15696|->         auto CurrentEnd=File_Offset+Buffer_Offset;

#15697|           if (ProbeCaptionBytePos!=(int64u)-1 && ProbeCaptionByteDur!=(int64u)-1 && File_Size/2>ProbeCaptionByteDur)

#15698|           {


Error: COMPILER_WARNING (CWE-665): [#def281]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.h:662:17: warning[-Wreorder]:   ‘ZenLib::int64u MediaInfoLib::File_Mxf::mxftimecode::StartTimecode’
#  662 |         int64u  StartTimecode;
#      |                 ^~~~~~~~~~~~~
#  660|       {

#  661|           int128u InstanceUID;

#  662|->         int64u  StartTimecode;

#  663|           int16u  RoundedTimecodeBase;

#  664|           bool    DropFrame;


Error: COMPILER_WARNING (CWE-665): [#def282]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__MultipleParsing.cpp:99: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.h: scope_hint: In constructor ‘MediaInfoLib::File_Mxf::mxftimecode::mxftimecode(ZenLib::int16u, ZenLib::int64u, bool)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.h:663:17: warning[-Wreorder]: ‘MediaInfoLib::File_Mxf::mxftimecode::RoundedTimecodeBase’ will be initialized after
#  663 |         int16u  RoundedTimecodeBase;
#      |                 ^~~~~~~~~~~~~~~~~~~
#  661|           int128u InstanceUID;

#  662|           int64u  StartTimecode;

#  663|->         int16u  RoundedTimecodeBase;

#  664|           bool    DropFrame;

#  665|   


Error: COMPILER_WARNING (CWE-665): [#def283]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.h:666:9: warning[-Wreorder]:   when initialized here
#  666 |         mxftimecode(int16u RoundedTimecodeBase_ = 0, int64u StartTimecode_ = (int64u)-1, bool DropFrame_ = false)
#      |         ^~~~~~~~~~~
#  664|           bool    DropFrame;

#  665|   

#  666|->         mxftimecode(int16u RoundedTimecodeBase_ = 0, int64u StartTimecode_ = (int64u)-1, bool DropFrame_ = false)

#  667|               : RoundedTimecodeBase(RoundedTimecodeBase_)

#  668|               , StartTimecode(StartTimecode_)


Error: COMPILER_WARNING (CWE-195): [#def284]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Nsv::Header_Parse()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:555:21: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’
#  555 |     for (auto i=0; i<num_aux; i++)
#      |                    ~^~~~~~~~
#  553|       auto num_aux=aux_plus_video_len&0xF;

#  554|       int32u video_len=aux_plus_video_len>>4;

#  555|->     for (auto i=0; i<num_aux; i++)

#  556|       {

#  557|           int16u aux_chunk_len;


Error: COMPILER_WARNING (CWE-195): [#def285]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Nsv::Data_Parse()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:777:34: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64u’ {aka ‘long long unsigned int’} and ‘int’
#  777 |                 if (FrameInfo.DUR!=-1)
#      |                     ~~~~~~~~~~~~~^~~~
#  775|               {

#  776|                   Demux(Buffer+Buffer_Offset+(size_t)Element_Offset-len, len, ContentType_MainStream);

#  777|->                 if (FrameInfo.DUR!=-1)

#  778|                   {

#  779|                       switch(Stream_Type[i])


Error: COMPILER_WARNING (CWE-1023): [#def286]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:779:27: warning[-Wswitch]: enumeration value ‘Stream_General’ not handled in switch
#  779 |                     switch(Stream_Type[i])
#      |                           ^
#  777|                   if (FrameInfo.DUR!=-1)

#  778|                   {

#  779|->                     switch(Stream_Type[i])

#  780|                       {

#  781|                           case Stream_Video:


Error: COMPILER_WARNING (CWE-1023): [#def287]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:779:27: warning[-Wswitch]: enumeration value ‘Stream_Image’ not handled in switch
#  777|                   if (FrameInfo.DUR!=-1)

#  778|                   {

#  779|->                     switch(Stream_Type[i])

#  780|                       {

#  781|                           case Stream_Video:


Error: COMPILER_WARNING (CWE-1023): [#def288]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:779:27: warning[-Wswitch]: enumeration value ‘Stream_Max’ not handled in switch
#  777|                   if (FrameInfo.DUR!=-1)

#  778|                   {

#  779|->                     switch(Stream_Type[i])

#  780|                       {

#  781|                           case Stream_Video:


Error: COMPILER_WARNING (CWE-1023): [#def289]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:779:27: warning[-Wswitch]: enumeration value ‘Stream_Menu’ not handled in switch
#  777|                   if (FrameInfo.DUR!=-1)

#  778|                   {

#  779|->                     switch(Stream_Type[i])

#  780|                       {

#  781|                           case Stream_Video:


Error: COMPILER_WARNING (CWE-1023): [#def290]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:779:27: warning[-Wswitch]: enumeration value ‘Stream_Other’ not handled in switch
#  777|                   if (FrameInfo.DUR!=-1)

#  778|                   {

#  779|->                     switch(Stream_Type[i])

#  780|                       {

#  781|                           case Stream_Video:


Error: COMPILER_WARNING (CWE-1023): [#def291]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:779:27: warning[-Wswitch]: enumeration value ‘Stream_Text’ not handled in switch
#  777|                   if (FrameInfo.DUR!=-1)

#  778|                   {

#  779|->                     switch(Stream_Type[i])

#  780|                       {

#  781|                           case Stream_Video:


Error: COMPILER_WARNING (CWE-563): [#def292]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_StarDiva::Read_Buffer_Continue()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:1351:16: warning[-Wunused-variable]: unused variable ‘Subtitles_Index’
# 1351 |         size_t Subtitles_Index=1;
#      |                ^~~~~~~~~~~~~~~
# 1349|           //Filling

# 1350|           size_t Seqs_Pos=0;

# 1351|->         size_t Subtitles_Index=1;

# 1352|           Offsets.resize(Times.size());

# 1353|           Fill(Stream_Menu, StreamPos_Last, Menu_Chapters_Pos_Begin, Count_Get(Stream_Menu, StreamPos_Last), 10, true);


Error: COMPILER_WARNING (CWE-457): [#def293]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:1420:19: warning[-Wmaybe-uninitialized]: ‘End’ may be used uninitialized
# 1420 |     Element_Offset=End;
#      |     ~~~~~~~~~~~~~~^~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:840:12: note: ‘End’ was declared here
#  840 |     size_t End;
#      |            ^~~
# 1418|       Element_End0();

# 1419|   

# 1420|->     Element_Offset=End;

# 1421|       if (Buffer_Size==0x4B000)

# 1422|           Skip_XX(0x4AC00-Element_Offset,                         "Zeroes");


Error: COMPILER_WARNING (CWE-563): [#def294]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Riff_Elements.cpp:3604:20: warning[-Wunused-variable]: ‘MediaInfoLib::profile_names_InternalID’ defined but not used
# 3604 | static const char* profile_names_InternalID[profile_names_size]=
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~
# 3602|   };

# 3603|   static const int profile_names_size=(int)sizeof(profile_names)/sizeof(const char*);

# 3604|-> static const char* profile_names_InternalID[profile_names_size]=

# 3605|   {

# 3606|       "Format",


Error: COMPILER_WARNING (CWE-195): [#def295]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Vbi.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Vbi::Line21()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Vbi.cpp:198:23: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
#  198 |     for (int i = 0; i < Buffer_Size; i++) {
#      |                     ~~^~~~~~~~~~~~~
#  196|       int8u Level_Min = (int8u)-1;
#  197|       int8u Level_Max = 0;
#  198|->     for (int i = 0; i < Buffer_Size; i++) {
#  199|           auto Value = Buffer[i];
#  200|           Level_Min = min(Level_Min, Value);

Error: COMPILER_WARNING (CWE-195): [#def296]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Vbi.cpp:217:23: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
#  217 |     for (int i = 0; i < Buffer_Size; i++) {
#      |                     ~~^~~~~~~~~~~~~
#  215|       int8u Current_Value = (int8u)-1;
#  216|       bool Is1 = false;
#  217|->     for (int i = 0; i < Buffer_Size; i++) {
#  218|           auto Value = Buffer[i];
#  219|           if (Value <= Level_0) {

Error: COMPILER_WARNING (CWE-195): [#def297]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Vbi.cpp:302:33: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
#  302 |     for (int Idx = Idx_Min; Idx < Idx_Max; Idx++) {
#      |                             ~~~~^~~~~~~~~
#  300|       ClockRunIn_0_x2 += Step_x12 / 12; // From start of a bit to middle of a bit
#  301|       auto Idx_Max = Get_Buffer_Index(8); // Middle of S2
#  302|->     for (int Idx = Idx_Min; Idx < Idx_Max; Idx++) {
#  303|           if (Buffer[Idx] > Level_0) {
#  304|               return; // Issue between begin of S1 and middle of S2, not 0

Error: COMPILER_WARNING (CWE-195): [#def298]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Vbi.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Vbi::Vitc()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Vbi.cpp:351:23: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
#  351 |     for (int i = 0; i < Buffer_Size; i++) {
#      |                     ~~^~~~~~~~~~~~~
#  349|       int8u Level_Min = (int8u)-1;
#  350|       int8u Level_Max = 0;
#  351|->     for (int i = 0; i < Buffer_Size; i++) {
#  352|           auto Value = Buffer[i];
#  353|           Level_Min = min(Level_Min, Value);

Error: COMPILER_WARNING (CWE-195): [#def299]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Vbi.cpp:369:23: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
#  369 |     for (int i = 0; i < Buffer_Size; i++) {
#      |                     ~~^~~~~~~~~~~~~
#  367|       size_t Current_Pos_PreviousChange = 0; // Min index of the 0 level or the 1 level
#  368|       bool Is1 = false;
#  369|->     for (int i = 0; i < Buffer_Size; i++) {
#  370|           auto Value = Buffer[i];
#  371|           if (Value <= Level_0) {

Error: COMPILER_WARNING (CWE-195): [#def300]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Vbi.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Vbi::Teletext()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Vbi.cpp:473:23: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
#  473 |     for (int i = 0; i < Buffer_Size; i++) {
#      |                     ~~^~~~~~~~~~~~~
#  471|       int8u Level_Min = (int8u)-1;
#  472|       int8u Level_Max = 0;
#  473|->     for (int i = 0; i < Buffer_Size; i++) {
#  474|           auto Value = Buffer[i];
#  475|           Level_Min = min(Level_Min, Value);

Error: COMPILER_WARNING (CWE-563): [#def301]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File__ReferenceFilesHelper.cpp: scope_hint: In function ‘std::wstring MediaInfoLib::URL_Encoded_Decode(const std::wstring&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Multiple/File__ReferenceFilesHelper.cpp:142:22: warning[-Wunused-variable]: unused variable ‘AdditionalBytes_Real’
#  142 |                 auto AdditionalBytes_Real=0;
#      |                      ^~~~~~~~~~~~~~~~~~~~
#  140|               {

#  141|                   //Handle as UTF-8

#  142|->                 auto AdditionalBytes_Real=0;

#  143|                   auto AdditionalBytes_Theory=Char>=0xF0?3:(Char>=0xE0?2:1);

#  144|                   Char&=AdditionalBytes_Theory>0xF0?0x1F:0x0F;


Error: COMPILER_WARNING (CWE-477): [#def302]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Reader/Reader_libcurl.cpp:37: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Reader/Reader_libcurl.cpp: scope_hint: In function ‘size_t MediaInfoLib::libcurl_WriteData_CallBack(void*, size_t, size_t, void*)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Reader/Reader_libcurl.cpp:684:85: warning[-Wdeprecated-declarations]: ‘CURLINFO_CONTENT_LENGTH_DOWNLOAD’ is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
#  684 |         CURLcode Result=curl_easy_getinfo(((Reader_libcurl::curl_data*)data)->Curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &File_SizeD);
#      |                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:2892:3: note: declared here
# 2892 |   CURLINFO_CONTENT_LENGTH_DOWNLOAD
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  682|           }

#  683|           double File_SizeD;

#  684|->         CURLcode Result=curl_easy_getinfo(((Reader_libcurl::curl_data*)data)->Curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &File_SizeD);

#  685|           if (Result==CURLE_OK && File_SizeD==0)

#  686|           {


Error: COMPILER_WARNING (CWE-670): [#def303]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Reader/Reader_libcurl.cpp:727:17: warning[-Wint-in-bool-context]: ‘*’ in boolean context, suggest ‘&&’ instead
#  727 |         if (size*nmemb)
#      |             ~~~~^~~~~~
#  725|   

#  726|       #if MEDIAINFO_EVENTS

#  727|->         if (size*nmemb)

#  728|           {

#  729|               struct MediaInfo_Event_Global_BytesRead_0 Event;


Error: COMPILER_WARNING (CWE-563): [#def304]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Tag/File_Id3v2.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Id3v2::APIC()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Tag/File_Id3v2.cpp:983:12: warning[-Wunused-variable]: unused variable ‘MiOpenResult’
#  983 |     size_t MiOpenResult = MI.Open(Buffer + (size_t)(Buffer_Offset + Element_Offset), (size_t)(Element_Size - Element_Offset), nullptr, 0, (size_t)(Element_Size - Element_Offset));
#      |            ^~~~~~~~~~~~
#  981|       Ztring Demux_Save = MI.Option(__T("Demux_Get"), __T(""));

#  982|       MI.Option(__T("Demux"), Ztring());

#  983|->     size_t MiOpenResult = MI.Open(Buffer + (size_t)(Buffer_Offset + Element_Offset), (size_t)(Element_Size - Element_Offset), nullptr, 0, (size_t)(Element_Size - Element_Offset));

#  984|       MI.Option(__T("Demux"), Demux_Save); //This is a global value, need to reset it. TODO: local value

#  985|       if (MI.Count_Get(Stream_Image))


Error: COMPILER_WARNING (CWE-195): [#def305]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Text/File_Eia608.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Eia608::PreambleAddressCode(ZenLib::int8u, ZenLib::int8u)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Text/File_Eia608.cpp:725:148: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
#  725 |         if (Streams[StreamPos]->Count_CurrentHasContent && !Streams[StreamPos]->InBack && !Streams[StreamPos]->RollUpLines && Streams[StreamPos]->y!=Eia608_PAC_Row[cc_data_1&0x07]+((cc_data_2&0x20)?1:0))
#  723|       if (!TextMode)

#  724|       {

#  725|->         if (Streams[StreamPos]->Count_CurrentHasContent && !Streams[StreamPos]->InBack && !Streams[StreamPos]->RollUpLines && Streams[StreamPos]->y!=Eia608_PAC_Row[cc_data_1&0x07]+((cc_data_2&0x20)?1:0))

#  726|           {

#  727|               Streams[StreamPos]->Count_PaintOn++;


Error: COMPILER_WARNING (CWE-569): [#def306]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Text/File_N19.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_N19::FileHeader_Parse()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Text/File_N19.cpp:517:41: warning[-Wparentheses]: suggest parentheses around ‘&&’ within ‘||’
#  517 |             if ((RN0==' ' || RN0 >= '0' && RN0<'9') && RN1>='0' && RN1<'9')
#      |                              ~~~~~~~~~~~^~~~~~~~~~
#  515|               auto RN0=(char)(RN>> 8);

#  516|               auto RN1=(char)(RN);

#  517|->             if ((RN0==' ' || RN0 >= '0' && RN0<'9') && RN1>='0' && RN1<'9')

#  518|               {

#  519|                   string RN_Text;


Error: COMPILER_WARNING (CWE-195): [#def307]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Text/File_Pac.cpp: scope_hint: In function ‘void MediaInfoLib::Pac_Convert(ZenLib::Ztring&, const codepage&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Text/File_Pac.cpp:51:34: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘wchar_t’ and ‘long unsigned int’
#   51 |         if (Item >= 0x20 && Item < Table_Size && Table[Item]) {
#      |                             ~~~~~^~~~~~~~~~~~
#   49|       auto Table_Size = CodePage.Size + 0x20;

#   50|       for (auto& Item : ToConvert) {

#   51|->         if (Item >= 0x20 && Item < Table_Size && Table[Item]) {

#   52|               Item = Table[Item];

#   53|           }


Error: COMPILER_WARNING (CWE-195): [#def308]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Text/File_Pac.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Pac::Data_Parse()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Text/File_Pac.cpp:455:32: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘std::vector<ZenLib::Ztring>::size_type’ {aka ‘long unsigned int’} and ‘int’
#  455 |             if (Content.size() == 1 + FirstFrameOfVideo) {
#      |                 ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
#  453|               }

#  454|               bool FirstFrameOfVideo = !Frame_Count && Content.size() == 2 && Content[0] == __T("First Frame of Video");

#  455|->             if (Content.size() == 1 + FirstFrameOfVideo) {

#  456|                   const auto& Line = Content[FirstFrameOfVideo];

#  457|                   if (Line.rfind(__T("FRAME "), 0) == 0 && Line.find_first_not_of(__T("0123456789"), 6) == string::npos) {


Error: COMPILER_WARNING (CWE-563): [#def309]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Avc::slice_header()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp:2399:16: warning[-Wunused-but-set-variable]: variable ‘TemporalReferences_Offset_pic_order_cnt_lsb_Diff’ set but not used
# 2399 |         int32s TemporalReferences_Offset_pic_order_cnt_lsb_Diff=0;
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2397|               tc=float64_int64s(((float64)1000000000)/((float64)(*seq_parameter_set_Item)->vui_parameters->time_scale/(*seq_parameter_set_Item)->vui_parameters->num_units_in_tick/((*seq_parameter_set_Item)->pic_order_cnt_type==2?1:2)/FrameRate_Divider)/((!(*seq_parameter_set_Item)->frame_mbs_only_flag && field_pic_flag)?2:1));

# 2398|   

# 2399|->         int32s TemporalReferences_Offset_pic_order_cnt_lsb_Diff=0;

# 2400|           if ((*seq_parameter_set_Item)->pic_order_cnt_type!=1 && first_mb_in_slice==0 && (Element_Code!=0x14 || seq_parameter_sets.empty()) && TemporalReferences_Reserved) //Not slice_layer_extension except if MVC only

# 2401|           {


Error: COMPILER_WARNING (CWE-563): [#def310]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp: scope_hint: In member function ‘MediaInfoLib::File_Avc::seq_parameter_set_struct* MediaInfoLib::File_Avc::seq_parameter_set_data(ZenLib::int32u&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp:4281:13: warning[-Wunused-variable]: unused variable ‘constraint_set1_flag’
# 4281 |     bool    constraint_set1_flag, constraint_set3_flag, separate_colour_plane_flag=false, delta_pic_order_always_zero_flag=false, frame_mbs_only_flag, mb_adaptive_frame_field_flag=false;
#      |             ^~~~~~~~~~~~~~~~~~~~
# 4279|       int32u  chroma_format_idc=1, bit_depth_luma_minus8=0, bit_depth_chroma_minus8=0, log2_max_frame_num_minus4, pic_order_cnt_type, log2_max_pic_order_cnt_lsb_minus4=(int32u)-1, max_num_ref_frames, pic_width_in_mbs_minus1, pic_height_in_map_units_minus1, frame_crop_left_offset=0, frame_crop_right_offset=0, frame_crop_top_offset=0, frame_crop_bottom_offset=0;

# 4280|       int8u   profile_idc, constraint_set_flags, level_idc;

# 4281|->     bool    constraint_set1_flag, constraint_set3_flag, separate_colour_plane_flag=false, delta_pic_order_always_zero_flag=false, frame_mbs_only_flag, mb_adaptive_frame_field_flag=false;

# 4282|       Get_B1 (profile_idc,                                        "profile_idc");

# 4283|       Get_B1 (constraint_set_flags,                               "constraint_sett_flags");


Error: COMPILER_WARNING (CWE-563): [#def311]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp:4281:35: warning[-Wunused-variable]: unused variable ‘constraint_set3_flag’
# 4281 |     bool    constraint_set1_flag, constraint_set3_flag, separate_colour_plane_flag=false, delta_pic_order_always_zero_flag=false, frame_mbs_only_flag, mb_adaptive_frame_field_flag=false;
#      |                                   ^~~~~~~~~~~~~~~~~~~~
# 4279|       int32u  chroma_format_idc=1, bit_depth_luma_minus8=0, bit_depth_chroma_minus8=0, log2_max_frame_num_minus4, pic_order_cnt_type, log2_max_pic_order_cnt_lsb_minus4=(int32u)-1, max_num_ref_frames, pic_width_in_mbs_minus1, pic_height_in_map_units_minus1, frame_crop_left_offset=0, frame_crop_right_offset=0, frame_crop_top_offset=0, frame_crop_bottom_offset=0;

# 4280|       int8u   profile_idc, constraint_set_flags, level_idc;

# 4281|->     bool    constraint_set1_flag, constraint_set3_flag, separate_colour_plane_flag=false, delta_pic_order_always_zero_flag=false, frame_mbs_only_flag, mb_adaptive_frame_field_flag=false;

# 4282|       Get_B1 (profile_idc,                                        "profile_idc");

# 4283|       Get_B1 (constraint_set_flags,                               "constraint_sett_flags");


Error: CPPCHECK_WARNING (CWE-786): [#def312]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Ffv1.cpp:1465: error[negativeIndex]: Array 'sample[2]' accessed at index sample[*][-1], which is out of bounds.
# 1463|           swap(sample[0], sample[1]);

# 1464|   

# 1465|->         sample[1][-1] = sample[0][0];

# 1466|           sample[0][current_slice->w]  = sample[0][current_slice->w - 1];

# 1467|   


Error: CPPCHECK_WARNING (CWE-786): [#def313]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Ffv1.cpp:1516: error[negativeIndex]: Array 'sample[4][2]' accessed at index sample[*][*][-1], which is out of bounds.
# 1514|               swap(sample[c][0], sample[c][1]);

# 1515|   

# 1516|->             sample[c][1][-1]= sample[c][0][0  ];

# 1517|               sample[c][0][current_slice->w]= sample[c][0][current_slice->w - 1];

# 1518|   


Error: COMPILER_WARNING (CWE-195): [#def314]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Ffv1.cpp: scope_hint: In member function ‘ZenLib::int32s MediaInfoLib::File_Ffv1::pixel_GR(ZenLib::int32s)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Ffv1.cpp:1681:25: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int32s’ {aka ‘int’} and ‘size_t’ {aka ‘long unsigned int’}
# 1681 |             if (context >= Context_GR_Size)
#      |                 ~~~~~~~~^~~~~~~~~~~~~~~~~~
# 1679|           if (context)

# 1680|           {

# 1681|->             if (context >= Context_GR_Size)

# 1682|               {

# 1683|                   BS->Skip(BS->Remain());


Error: COMPILER_WARNING (CWE-195): [#def315]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Ffv1.cpp: scope_hint: In member function ‘bool MediaInfoLib::File_Ffv1::QuantizationTablePerContext(size_t, size_t, MediaInfoLib::FFV1::pixel_t&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Ffv1.cpp:1849:15: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘MediaInfoLib::FFV1::pixel_t’ {aka ‘int’} and ‘unsigned int’
# 1849 |     if (scale > 32768U)
#      |         ~~~~~~^~~~~~~~
# 1847|   

# 1848|       scale *= 2 * v - 1;

# 1849|->     if (scale > 32768U)

# 1850|       {

# 1851|           Element_Error("FFV1-HEADER-QuantizationTable-scale:1");


Error: COMPILER_WARNING (CWE-195): [#def316]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp: scope_hint: In member function ‘virtual bool MediaInfoLib::File_Hevc::Demux_UnpacketizeContainer_Test()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:684:21: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
#  684 |             if (Size<lengthSizeMinusOne+1+2 || Buffer_Offset+Size>Buffer_Size || (Buffer_Offset+Size!=Buffer_Size && Buffer_Offset+Size+lengthSizeMinusOne+1>Buffer_Size))
#      |                 ~~~~^~~~~~~~~~~~~~~~~~~~~~~
#  682|   

#  683|               //Coherency checking

#  684|->             if (Size<lengthSizeMinusOne+1+2 || Buffer_Offset+Size>Buffer_Size || (Buffer_Offset+Size!=Buffer_Size && Buffer_Offset+Size+lengthSizeMinusOne+1>Buffer_Size))

#  685|                   Size=Buffer_Size-Buffer_Offset;

#  686|               size_t Buffer_Offset_Temp=Buffer_Offset+lengthSizeMinusOne+1;


Error: COMPILER_WARNING (CWE-563): [#def317]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Hevc::video_parameter_set()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1648:52: warning[-Wunused-value]: for increment expression has no effect
# 1648 |         for (auto Bits=Data_BS_Remain()%8; Bits--; Bits)
#      |                                                    ^~~~
# 1646|           int8u view_id_len;

# 1647|           bool splitting_flag, vps_nuh_layer_id_present_flag;

# 1648|->         for (auto Bits=Data_BS_Remain()%8; Bits--; Bits)

# 1649|               Mark_1();

# 1650|           if (vps_max_layers_minus1 && vps_base_layer_internal_flag)


Error: COMPILER_WARNING (CWE-563): [#def318]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1759:15: warning[-Wunused-but-set-variable]: variable ‘IdDirectRefLayer’ set but not used
# 1759 |         int8u IdDirectRefLayer[64][64];
#      |               ^~~~~~~~~~~~~~~~
# 1757|                           DependencyFlag[i][j] = 1;

# 1758|               }

# 1759|->         int8u IdDirectRefLayer[64][64];

# 1760|           int8u IdRefLayer[64][64];

# 1761|           int8u IdPredictedLayer[64][64];


Error: COMPILER_WARNING (CWE-563): [#def319]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1760:15: warning[-Wunused-but-set-variable]: variable ‘IdRefLayer’ set but not used
# 1760 |         int8u IdRefLayer[64][64];
#      |               ^~~~~~~~~~
# 1758|               }

# 1759|           int8u IdDirectRefLayer[64][64];

# 1760|->         int8u IdRefLayer[64][64];

# 1761|           int8u IdPredictedLayer[64][64];

# 1762|           int8u NumDirectRefLayers[64];


Error: COMPILER_WARNING (CWE-563): [#def320]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1763:15: warning[-Wunused-but-set-variable]: variable ‘NumRefLayers’ set but not used
# 1763 |         int8u NumRefLayers[64];
#      |               ^~~~~~~~~~~~
# 1761|           int8u IdPredictedLayer[64][64];

# 1762|           int8u NumDirectRefLayers[64];

# 1763|->         int8u NumRefLayers[64];

# 1764|           int8u NumPredictedLayers[64];

# 1765|           int8u TreePartitionLayerIdList[64][64];


Error: COMPILER_WARNING (CWE-195): [#def321]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1818:27: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘ZenLib::int32u’ {aka ‘unsigned int’}
# 1818 |         for (int i = 0; i < num_add_layer_sets; i++)
#      |                         ~~^~~~~~~~~~~~~~~~~~~~
# 1816|           vector<vector<int32u> > highest_layer_idx_plus1List;

# 1817|           highest_layer_idx_plus1List.resize(num_add_layer_sets);

# 1818|->         for (int i = 0; i < num_add_layer_sets; i++)

# 1819|           {

# 1820|               highest_layer_idx_plus1List[i].reserve(NumIndependentLayers);


Error: COMPILER_WARNING (CWE-195): [#def322]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1829:27: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘ZenLib::int32u’ {aka ‘unsigned int’}
# 1829 |         for (int i = 0; i < num_add_layer_sets; i++)
#      |                         ~~^~~~~~~~~~~~~~~~~~~~
# 1827|               }

# 1828|           }

# 1829|->         for (int i = 0; i < num_add_layer_sets; i++)

# 1830|           {

# 1831|               int32u layerNum = 0;


Error: COMPILER_WARNING (CWE-195): [#def323]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1860:62: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘ZenLib::int32u’ {aka ‘unsigned int’}
# 1860 |         for (int i = vps_base_layer_internal_flag ? 2 : 1; i <= vps_num_profile_tier_level_minus1; i++)
#      |                                                            ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1858|           int32u vps_num_profile_tier_level_minus1;

# 1859|           Get_UE(vps_num_profile_tier_level_minus1,               "vps_num_profile_tier_level_minus1");

# 1860|->         for (int i = vps_base_layer_internal_flag ? 2 : 1; i <= vps_num_profile_tier_level_minus1; i++)

# 1861|           {

# 1862|               bool vps_profile_present_flag;


Error: COMPILER_WARNING (CWE-563): [#def324]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Hevc::three_dimensional_reference_displays_info(ZenLib::int32u)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:3751:12: warning[-Wunused-but-set-variable]: variable ‘left_view_id0’ set but not used
# 3751 |     int32u left_view_id0, right_view_id0;
#      |            ^~~~~~~~~~~~~
# 3749|       auto End=Data_BS_Remain()-payloadSize*8;

# 3750|       int32u prec_ref_display_width, num_ref_displays_minus1;

# 3751|->     int32u left_view_id0, right_view_id0;

# 3752|       bool ref_viewing_distance_flag;

# 3753|       Get_UE (prec_ref_display_width,                             "prec_ref_display_width");


Error: COMPILER_WARNING (CWE-563): [#def325]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:3751:27: warning[-Wunused-but-set-variable]: variable ‘right_view_id0’ set but not used
# 3751 |     int32u left_view_id0, right_view_id0;
#      |                           ^~~~~~~~~~~~~~
# 3749|       auto End=Data_BS_Remain()-payloadSize*8;

# 3750|       int32u prec_ref_display_width, num_ref_displays_minus1;

# 3751|->     int32u left_view_id0, right_view_id0;

# 3752|       bool ref_viewing_distance_flag;

# 3753|       Get_UE (prec_ref_display_width,                             "prec_ref_display_width");


Error: COMPILER_WARNING (CWE-195): [#def326]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Hevc::slice_segment_header()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:3938:26: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int64s’ {aka ‘long long int’} and ‘std::vector<MediaInfoLib::File_Hevc::temporal_reference*>::size_type’ {aka ‘long unsigned int’}
# 3938 |         if (pic_order_cnt>=TemporalReferences.size()/4 || pic_order_cnt<=-((int64s)TemporalReferences.size()/4))
#      |             ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3936|       {

# 3937|           int64s pic_order_cnt=float64_int64s(int64s(FrameInfo.PTS-pic_order_cnt_DTS_Ref)*FrameRate/1000000000);

# 3938|->         if (pic_order_cnt>=TemporalReferences.size()/4 || pic_order_cnt<=-((int64s)TemporalReferences.size()/4))

# 3939|               pic_order_cnt_DTS_Ref=(int64u)-1; // Incoherency in DTS? Disabling compute by DTS, TODO: more generic test (all formats)

# 3940|       }


Error: COMPILER_WARNING (CWE-563): [#def327]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_ProRes.cpp: scope_hint: In function ‘size_t MediaInfoLib::ProRes_Profile_Index(const std::string&)’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_ProRes.cpp:53:12: warning[-Wunused-variable]: unused variable ‘Profile’
#   53 |     size_t Profile;
#      |            ^~~~~~~
#   51|   size_t ProRes_Profile_Index(const string& ProfileS) // Note: 1-based, 0 means not found

#   52|   {

#   53|->     size_t Profile;

#   54|       auto Pos=find(begin(ProRes_Profile_Names), end(ProRes_Profile_Names), ProfileS);

#   55|       if (Pos==end(ProRes_Profile_Names))


Error: COMPILER_WARNING (CWE-457): [#def328]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Vp9.cpp: scope_hint: In member function ‘MediaInfoLib::File_Vp9::Read_Buffer_Continue()’
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Vp9.cpp:311:94: warning[-Wmaybe-uninitialized]: ‘subsampling’ may be used uninitialized
#  311 |                         Fill(Stream_Video, 0, Video_ChromaSubsampling, Vp9_ChromaSubsampling[subsampling], Unlimited, true, true);
#      |                                                                                              ^~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Video/File_Vp9.cpp:182:57: note: ‘subsampling’ was declared here
#  182 |     int8u FRAME_MARKER, profile, bit_depth, colorspace, subsampling;
#      |                                                         ^~~~~~~~~~~
#  309|                       if (colorspace)

#  310|                       {

#  311|->                         Fill(Stream_Video, 0, Video_ChromaSubsampling, Vp9_ChromaSubsampling[subsampling], Unlimited, true, true);

#  312|                           Fill(Stream_Video, 0, Video_colour_range, Vp9_ColorRange[yuv_range_flag]);

#  313|                       }


Error: GCC_ANALYZER_WARNING (CWE-835): [#def329]
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c: scope_hint: In function ‘aes_cfb_encrypt’
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c:564:15: warning[-Wanalyzer-infinite-loop]: infinite loop
#  562|       }

#  563|   

#  564|->     while(cnt < len)

#  565|       {

#  566|           if(!b_pos && aes_encrypt(iv, iv, ctx) != EXIT_SUCCESS)


Error: GCC_ANALYZER_WARNING (CWE-835): [#def330]
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c: scope_hint: In function ‘aes_cfb_decrypt’
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c:702:15: warning[-Wanalyzer-infinite-loop]: infinite loop
#  700|       }

#  701|   

#  702|->     while(cnt < len)

#  703|       {   uint8_t t;

#  704|   


Error: GCC_ANALYZER_WARNING (CWE-835): [#def331]
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c: scope_hint: In function ‘aes_ofb_crypt’
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c:830:15: warning[-Wanalyzer-infinite-loop]: infinite loop
#  828|       }

#  829|   

#  830|->     while(cnt < len)

#  831|       {

#  832|           if(!b_pos && aes_encrypt(iv, iv, ctx) != EXIT_SUCCESS)


Error: COMPILER_WARNING: [#def332]
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:21: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c: scope_hint: In function ‘aes_decrypt_key192’
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:396:34: warning[-Wsequence-point]: operation on ‘ss[4]’ may be undefined
#  396 |     cx->ks[v(48,(4))] = ff(ss[4] = word_in(key, 4));
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:346:25: note: in definition of macro ‘to_byte’
#  346 | #  define to_byte(x)  ((x) & 0xff)
#      |                         ^
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:720:12: note: in expansion of macro ‘bval’
#  720 |   ^ tab[2][bval(vf(x,2,c),rf(2,c))] \
#      |            ^~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:720:17: note: in expansion of macro ‘vf1’
#  720 |   ^ tab[2][bval(vf(x,2,c),rf(2,c))] \
#      |                 ^~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:742:29: note: in expansion of macro ‘four_tables’
#  742 | #  define inv_mcol(x)       four_tables(x,t_use(i,m),vf1,rf1,0)
#      |                             ^~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:232:17: note: in expansion of macro ‘inv_mcol’
#  232 | #define ff(x)   inv_mcol(x)
#      |                 ^~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:396:25: note: in expansion of macro ‘ff’
#  396 |     cx->ks[v(48,(4))] = ff(ss[4] = word_in(key, 4));
#      |                         ^~
#  394|   

#  395|   #ifdef DEC_KS_UNROLL

#  396|->     cx->ks[v(48,(4))] = ff(ss[4] = word_in(key, 4));

#  397|       cx->ks[v(48,(5))] = ff(ss[5] = word_in(key, 5));

#  398|       kdf6(cx->ks, 0); kd6(cx->ks, 1);


Error: COMPILER_WARNING: [#def333]
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:397:34: warning[-Wsequence-point]: operation on ‘ss[5]’ may be undefined
#  397 |     cx->ks[v(48,(5))] = ff(ss[5] = word_in(key, 5));
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:346:25: note: in definition of macro ‘to_byte’
#  346 | #  define to_byte(x)  ((x) & 0xff)
#      |                         ^
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:720:12: note: in expansion of macro ‘bval’
#  720 |   ^ tab[2][bval(vf(x,2,c),rf(2,c))] \
#      |            ^~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:720:17: note: in expansion of macro ‘vf1’
#  720 |   ^ tab[2][bval(vf(x,2,c),rf(2,c))] \
#      |                 ^~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:742:29: note: in expansion of macro ‘four_tables’
#  742 | #  define inv_mcol(x)       four_tables(x,t_use(i,m),vf1,rf1,0)
#      |                             ^~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:232:17: note: in expansion of macro ‘inv_mcol’
#  232 | #define ff(x)   inv_mcol(x)
#      |                 ^~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:397:25: note: in expansion of macro ‘ff’
#  397 |     cx->ks[v(48,(5))] = ff(ss[5] = word_in(key, 5));
#      |                         ^~
#  395|   #ifdef DEC_KS_UNROLL

#  396|       cx->ks[v(48,(4))] = ff(ss[4] = word_in(key, 4));

#  397|->     cx->ks[v(48,(5))] = ff(ss[5] = word_in(key, 5));

#  398|       kdf6(cx->ks, 0); kd6(cx->ks, 1);

#  399|       kd6(cx->ks, 2);  kd6(cx->ks, 3);


Error: COMPILER_WARNING: [#def334]
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c: scope_hint: In function ‘aes_decrypt_key256’
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:488:34: warning[-Wsequence-point]: operation on ‘ss[4]’ may be undefined
#  488 |     cx->ks[v(56,(4))] = ff(ss[4] = word_in(key, 4));
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:346:25: note: in definition of macro ‘to_byte’
#  346 | #  define to_byte(x)  ((x) & 0xff)
#      |                         ^
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:720:12: note: in expansion of macro ‘bval’
#  720 |   ^ tab[2][bval(vf(x,2,c),rf(2,c))] \
#      |            ^~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:720:17: note: in expansion of macro ‘vf1’
#  720 |   ^ tab[2][bval(vf(x,2,c),rf(2,c))] \
#      |                 ^~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:742:29: note: in expansion of macro ‘four_tables’
#  742 | #  define inv_mcol(x)       four_tables(x,t_use(i,m),vf1,rf1,0)
#      |                             ^~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:232:17: note: in expansion of macro ‘inv_mcol’
#  232 | #define ff(x)   inv_mcol(x)
#      |                 ^~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:488:25: note: in expansion of macro ‘ff’
#  488 |     cx->ks[v(56,(4))] = ff(ss[4] = word_in(key, 4));
#      |                         ^~
#  486|   

#  487|   #ifdef DEC_KS_UNROLL

#  488|->     cx->ks[v(56,(4))] = ff(ss[4] = word_in(key, 4));

#  489|       cx->ks[v(56,(5))] = ff(ss[5] = word_in(key, 5));

#  490|       cx->ks[v(56,(6))] = ff(ss[6] = word_in(key, 6));


Error: COMPILER_WARNING: [#def335]
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:489:34: warning[-Wsequence-point]: operation on ‘ss[5]’ may be undefined
#  489 |     cx->ks[v(56,(5))] = ff(ss[5] = word_in(key, 5));
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:346:25: note: in definition of macro ‘to_byte’
#  346 | #  define to_byte(x)  ((x) & 0xff)
#      |                         ^
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:720:12: note: in expansion of macro ‘bval’
#  720 |   ^ tab[2][bval(vf(x,2,c),rf(2,c))] \
#      |            ^~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:720:17: note: in expansion of macro ‘vf1’
#  720 |   ^ tab[2][bval(vf(x,2,c),rf(2,c))] \
#      |                 ^~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:742:29: note: in expansion of macro ‘four_tables’
#  742 | #  define inv_mcol(x)       four_tables(x,t_use(i,m),vf1,rf1,0)
#      |                             ^~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:232:17: note: in expansion of macro ‘inv_mcol’
#  232 | #define ff(x)   inv_mcol(x)
#      |                 ^~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:489:25: note: in expansion of macro ‘ff’
#  489 |     cx->ks[v(56,(5))] = ff(ss[5] = word_in(key, 5));
#      |                         ^~
#  487|   #ifdef DEC_KS_UNROLL

#  488|       cx->ks[v(56,(4))] = ff(ss[4] = word_in(key, 4));

#  489|->     cx->ks[v(56,(5))] = ff(ss[5] = word_in(key, 5));

#  490|       cx->ks[v(56,(6))] = ff(ss[6] = word_in(key, 6));

#  491|       cx->ks[v(56,(7))] = ff(ss[7] = word_in(key, 7));


Error: COMPILER_WARNING: [#def336]
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:490:34: warning[-Wsequence-point]: operation on ‘ss[6]’ may be undefined
#  490 |     cx->ks[v(56,(6))] = ff(ss[6] = word_in(key, 6));
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:346:25: note: in definition of macro ‘to_byte’
#  346 | #  define to_byte(x)  ((x) & 0xff)
#      |                         ^
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:720:12: note: in expansion of macro ‘bval’
#  720 |   ^ tab[2][bval(vf(x,2,c),rf(2,c))] \
#      |            ^~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:720:17: note: in expansion of macro ‘vf1’
#  720 |   ^ tab[2][bval(vf(x,2,c),rf(2,c))] \
#      |                 ^~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:742:29: note: in expansion of macro ‘four_tables’
#  742 | #  define inv_mcol(x)       four_tables(x,t_use(i,m),vf1,rf1,0)
#      |                             ^~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:232:17: note: in expansion of macro ‘inv_mcol’
#  232 | #define ff(x)   inv_mcol(x)
#      |                 ^~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:490:25: note: in expansion of macro ‘ff’
#  490 |     cx->ks[v(56,(6))] = ff(ss[6] = word_in(key, 6));
#      |                         ^~
#  488|       cx->ks[v(56,(4))] = ff(ss[4] = word_in(key, 4));

#  489|       cx->ks[v(56,(5))] = ff(ss[5] = word_in(key, 5));

#  490|->     cx->ks[v(56,(6))] = ff(ss[6] = word_in(key, 6));

#  491|       cx->ks[v(56,(7))] = ff(ss[7] = word_in(key, 7));

#  492|       kdf8(cx->ks, 0); kd8(cx->ks, 1);


Error: COMPILER_WARNING: [#def337]
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:491:34: warning[-Wsequence-point]: operation on ‘ss[7]’ may be undefined
#  491 |     cx->ks[v(56,(7))] = ff(ss[7] = word_in(key, 7));
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:346:25: note: in definition of macro ‘to_byte’
#  346 | #  define to_byte(x)  ((x) & 0xff)
#      |                         ^
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:720:12: note: in expansion of macro ‘bval’
#  720 |   ^ tab[2][bval(vf(x,2,c),rf(2,c))] \
#      |            ^~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:720:17: note: in expansion of macro ‘vf1’
#  720 |   ^ tab[2][bval(vf(x,2,c),rf(2,c))] \
#      |                 ^~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aesopt.h:742:29: note: in expansion of macro ‘four_tables’
#  742 | #  define inv_mcol(x)       four_tables(x,t_use(i,m),vf1,rf1,0)
#      |                             ^~~~~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:232:17: note: in expansion of macro ‘inv_mcol’
#  232 | #define ff(x)   inv_mcol(x)
#      |                 ^~~~~~~~
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:491:25: note: in expansion of macro ‘ff’
#  491 |     cx->ks[v(56,(7))] = ff(ss[7] = word_in(key, 7));
#      |                         ^~
#  489|       cx->ks[v(56,(5))] = ff(ss[5] = word_in(key, 5));

#  490|       cx->ks[v(56,(6))] = ff(ss[6] = word_in(key, 6));

#  491|->     cx->ks[v(56,(7))] = ff(ss[7] = word_in(key, 7));

#  492|       kdf8(cx->ks, 0); kd8(cx->ks, 1);

#  493|       kd8(cx->ks, 2);  kd8(cx->ks, 3);


Error: COMPILER_WARNING (CWE-823): [#def338]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Element.cpp:25: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/base64/base64.h: scope_hint: In function ‘std::string Base64::encode(const std::string&)’
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/base64/base64.h:53:36: warning[-Wchar-subscripts]: array subscript has type ‘char’
#   53 |     sResult.append(1, sBase64Table[cCode]);
#      |                                    ^~~~~
#   51|       // Encode the first 6 bits

#   52|       cCode = (sString[nPos] >> 2) & 0x3f;

#   53|->     sResult.append(1, sBase64Table[cCode]);

#   54|   

#   55|       // Encode the remaining 2 bits with the next 4 bits (if present)


Error: COMPILER_WARNING (CWE-823): [#def339]
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/base64/base64.h:59:36: warning[-Wchar-subscripts]: array subscript has type ‘char’
#   59 |     sResult.append(1, sBase64Table[cCode]);
#      |                                    ^~~~~
#   57|       if(++nPos < nLength)

#   58|         cCode |= (sString[nPos] >> 4) & 0x0f;

#   59|->     sResult.append(1, sBase64Table[cCode]);

#   60|   

#   61|       if(nPos < nLength) {


Error: COMPILER_WARNING (CWE-823): [#def340]
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/base64/base64.h:66:38: warning[-Wchar-subscripts]: array subscript has type ‘char’
#   66 |       sResult.append(1, sBase64Table[cCode]);
#      |                                      ^~~~~
#   64|           cCode |= (sString[nPos] >> 6) & 0x03;

#   65|   

#   66|->       sResult.append(1, sBase64Table[cCode]);

#   67|       } else {

#   68|         ++nPos;


Error: COMPILER_WARNING (CWE-823): [#def341]
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/base64/base64.h:74:38: warning[-Wchar-subscripts]: array subscript has type ‘char’
#   74 |       sResult.append(1, sBase64Table[cCode]);
#      |                                      ^~~~~
#   72|       if(nPos < nLength) {

#   73|         cCode = sString[nPos] & 0x3f;

#   74|->       sResult.append(1, sBase64Table[cCode]);

#   75|       } else {

#   76|         sResult.append(1, cFillChar);


Error: COMPILER_WARNING (CWE-1164): [#def342]
libmediainfo-24.11-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:42: included_from: Included from here.
libmediainfo-24.11-build/MediaInfoLib/Source/ThirdParty/tfsxml/tfsxml.h:186:13: warning[-Wunused-function]: ‘void tfsxml_decode(std::string&, const tfsxml_string&)’ defined but not used
#  186 | static void tfsxml_decode(std::string& s, const tfsxml_string& b) { tfsxml_decode(&s, &b, tfsxml_decode_string); }
#      |             ^~~~~~~~~~~~~
#  184|    * @param b  XML content to decode
#  185|    */
#  186|-> static void tfsxml_decode(std::string& s, const tfsxml_string& b) { tfsxml_decode(&s, &b, tfsxml_decode_string); }
#  187|   
#  188|   /** Convert encoded XML block (attribute or value) to real content (encoded in UTF-8)

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-231.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibmediainfo-24.11-1.fc42
store-results-to/tmp/tmpm_h818ty/libmediainfo-24.11-1.fc42.tar.xz
time-created2024-11-13 01:37:47
time-finished2024-11-13 01:43:06
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpm_h818ty/libmediainfo-24.11-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpm_h818ty/libmediainfo-24.11-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9