libmediainfo-24.04-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_7z.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_Ace.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_Bzip2.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_Elf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_Gzip.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_Iso9660.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def7]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_Iso9660.cpp:123:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'MI_Offsets'
#  121|       //Merge data files data

#  122|       if (MI_DataFiles.size()!=MI_MasterFiles.size() || !MI_Offsets)

#  123|->         return;

#  124|       i=0;

#  125|       for (auto& MI_DataFile : MI_DataFiles)


Error: CLANG_WARNING: [#def8]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_Iso9660.cpp:129:102: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
#  127|           for (size_t StreamKind=Stream_General+1; StreamKind<Stream_Max; StreamKind++)

#  128|               for (size_t Pos=0; Pos<Count_Get((stream_t)StreamKind); Pos++)

#  129|->                 Merge(*MI_DataFile.second->Info, (stream_t)StreamKind, Pos, MI_Offsets[i][StreamKind]+Pos);

#  130|           i++;

#  131|       }


Error: COMPILER_WARNING (CWE-563): [#def9]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_Iso9660.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Iso9660::Primary_Volume_Descriptor2()’
libmediainfo-24.04-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): [#def10]
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def11]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_Mz.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_Rar.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_Tar.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Archive/File_Zip.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_GeneralAudio.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

# 3897|                           Element_Begin1("fill_byte");

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

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

# 3900|                           Element_End0();


Error: CPPCHECK_WARNING: [#def19]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_GeneralAudio_Sbr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_GeneralAudio_Sbr_Ps.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_Main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-195): [#def22]
libmediainfo-24.04-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.04-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): [#def23]
libmediainfo-24.04-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.04-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): [#def24]
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def25]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aac_Others.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def27]
libmediainfo-24.04-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: [#def28]
libmediainfo-24.04-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): [#def29]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp: scope_hint: In function ‘bool MediaInfoLib::Ac3_EMDF_Test(const ZenLib::BitStream_Fast&)’
libmediainfo-24.04-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: CLANG_WARNING: [#def30]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:923:12: warning[deadcode.DeadStores]: Value stored to 'End' during its initialization is never read
#  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: CLANG_WARNING: [#def31]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:2052:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 2050|       }

# 2051|   

# 2052|->     if (Buffer[Buffer_Offset]==0x0B && Buffer[Buffer_Offset+1]==0x77)

# 2053|       {

# 2054|           int8u bsid=Buffer[Buffer_Offset+5]>>3;


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

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

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

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

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


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

# 2531|               BS_Begin();

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

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

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


Error: CLANG_WARNING: [#def34]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:2532:20: warning[deadcode.DeadStores]: Value stored to 'Bits_Begin' during its initialization is never read
# 2530|           Element_Begin1("bsi");

# 2531|               BS_Begin();

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

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

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


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

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

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

# 2741|                   {

# 2742|                       delete[] addbsi_Buffer;


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

# 3984|   {

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

# 3986|       int32u version, key_id;

# 3987|       Element_Begin1("emdf_container");


Error: CLANG_WARNING: [#def37]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:3985:12: warning[deadcode.DeadStores]: Value stored to 'Start' during its initialization is never read
# 3983|   void File_Ac3::emdf_container()

# 3984|   {

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

# 3986|       int32u version, key_id;

# 3987|       Element_Begin1("emdf_container");


Error: CLANG_WARNING: [#def38]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:4007:9: warning[deadcode.DeadStores]: Value stored to 'key_id' is never read
# 4005|           int32u add;

# 4006|           Get_V4 (3, add,                                         "key_id addition");

# 4007|->         key_id += add;

# 4008|       }

# 4009|   


Error: CLANG_WARNING: [#def39]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:4157:9: warning[deadcode.DeadStores]: Value stored to 'oa_md_version_bits' is never read
# 4155|           int8u oa_md_version_bits_ext;

# 4156|           Get_S1 (3, oa_md_version_bits_ext,                      "oa_md_version_bits_ext");

# 4157|->         oa_md_version_bits += oa_md_version_bits_ext;

# 4158|       }

# 4159|   


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

# 4412|                       unsigned char Extend = 0;

# 4413|->                     unsigned char Unknown = 0;

# 4414|                       bool HasContent = false;

# 4415|                       BS_Begin();


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

# 4413|                       unsigned char Unknown = 0;

# 4414|->                     bool HasContent = false;

# 4415|                       BS_Begin();

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


Error: CLANG_WARNING: [#def42]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac3.cpp:4936:54: warning[core.UndefinedBinaryOperatorResult]: The right operand of '^' is a garbage value
# 4934|       while(CRC_16_Buffer<CRC_16_Buffer_End)

# 4935|       {

# 4936|->         CRC_16=(CRC_16<<8) ^ CRC_16_Table[(CRC_16>>8)^(*CRC_16_Buffer)];

# 4937|   

# 4938|           //CRC bytes inversion


Error: CPPCHECK_WARNING: [#def43]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-1164): [#def44]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: At global scope
libmediainfo-24.04-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): [#def45]
libmediainfo-24.04-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: CLANG_WARNING: [#def46]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:1186:9: warning[deadcode.DeadStores]: Value stored to 'IsUsingDac4' is never read
# 1184|           Presentations=Presentations_dac4;

# 1185|           Groups=Groups_dac4;

# 1186|->         IsUsingDac4=true;

# 1187|       }

# 1188|       else


Error: CLANG_WARNING: [#def47]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:1189:9: warning[deadcode.DeadStores]: Value stored to 'IsUsingDac4' is never read
# 1187|       }

# 1188|       else

# 1189|->         IsUsingDac4=false;

# 1190|   

# 1191|       //Filling


Error: COMPILER_WARNING (CWE-563): [#def48]
libmediainfo-24.04-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: CLANG_WARNING: [#def49]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:1704:25: warning[deadcode.DeadStores]: Value stored to 'b_channel_coded' is never read
# 1702|                       {

# 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;


Error: COMPILER_WARNING (CWE-563): [#def50]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Ac4::Streams_Fill()’
libmediainfo-24.04-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): [#def51]
libmediainfo-24.04-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: CLANG_WARNING: [#def52]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:1847:18: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1845|           Buffer_Offset++;

# 1846|       }

# 1847|->     Buffer_Offset=Buffer_Offset_Current;

# 1848|   

# 1849|       //Parsing last bytes if needed


Error: COMPILER_WARNING (CWE-457): [#def53]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘MediaInfoLib::File_Ac4::Synchronize()’
libmediainfo-24.04-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.04-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): [#def54]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Ac4::oamd_common_data()’
libmediainfo-24.04-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): [#def55]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘MediaInfoLib::File_Ac4::ac4_substream(unsigned long)’
libmediainfo-24.04-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): [#def56]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Ac4::metadata(audio_substream&, size_t)’
libmediainfo-24.04-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): [#def57]
libmediainfo-24.04-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): [#def58]
libmediainfo-24.04-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.04-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): [#def59]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Ac4::ac4_presentation_v1_dsi(presentation&)’
libmediainfo-24.04-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.04-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: CLANG_WARNING: [#def60]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.cpp:5228:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 5226|               Peek_S2(BitSize, Temp);

# 5227|           }

# 5228|->         if (Temp==Bits[i].Value)

# 5229|           {

# 5230|               Skip_S2(BitSize, Name); Param_Info1(i);


Error: COMPILER_WARNING (CWE-665): [#def61]
libmediainfo-24.04-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): [#def62]
libmediainfo-24.04-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): [#def63]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__MultipleParsing.cpp:189: included_from: Included from here.
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.h: scope_hint: In constructor ‘MediaInfoLib::File_Ac4::presentation::presentation()’
libmediainfo-24.04-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): [#def64]
libmediainfo-24.04-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): [#def65]
libmediainfo-24.04-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): [#def66]
libmediainfo-24.04-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): [#def67]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ac4.h: scope_hint: In constructor ‘MediaInfoLib::File_Ac4::group_substream::group_substream()’
libmediainfo-24.04-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): [#def68]
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def69]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-1164): [#def70]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: At global scope
libmediainfo-24.04-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): [#def71]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘ZenLib::float32 MediaInfoLib::TimeCodeToFloat(std::string)’
libmediainfo-24.04-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): [#def72]
libmediainfo-24.04-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): [#def73]
libmediainfo-24.04-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): [#def74]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: At global scope
libmediainfo-24.04-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.04-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.04-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): [#def75]
libmediainfo-24.04-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.04-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): [#def76]
libmediainfo-24.04-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.04-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): [#def77]
libmediainfo-24.04-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.04-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): [#def78]
libmediainfo-24.04-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.04-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): [#def79]
libmediainfo-24.04-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): [#def80]
libmediainfo-24.04-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.04-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: [#def81]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::loudnessMetadata_Check(file_adm_private*, item)’
libmediainfo-24.04-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): [#def82]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::audioProgrammeReferenceScreen_Check(file_adm_private*)’
libmediainfo-24.04-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): [#def83]
libmediainfo-24.04-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): [#def84]
libmediainfo-24.04-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): [#def85]
libmediainfo-24.04-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): [#def86]
libmediainfo-24.04-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): [#def87]
libmediainfo-24.04-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): [#def88]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::screenWidth_Check(file_adm_private*)’
libmediainfo-24.04-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): [#def89]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::authoringInformation_Check(file_adm_private*)’
libmediainfo-24.04-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): [#def90]
libmediainfo-24.04-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): [#def91]
libmediainfo-24.04-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): [#def92]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::audioProgramme_Check(file_adm_private*)’
libmediainfo-24.04-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): [#def93]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::audioObjectInteraction_Check(file_adm_private*)’
libmediainfo-24.04-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): [#def94]
libmediainfo-24.04-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): [#def95]
libmediainfo-24.04-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): [#def96]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::Object_Check(file_adm_private*)’
libmediainfo-24.04-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): [#def97]
libmediainfo-24.04-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): [#def98]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::audioBlockFormat_Check(file_adm_private*)’
libmediainfo-24.04-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): [#def99]
libmediainfo-24.04-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): [#def100]
libmediainfo-24.04-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): [#def101]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘MediaInfoLib::audioBlockFormat_Check(MediaInfoLib::file_adm_private*)’
libmediainfo-24.04-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.04-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): [#def102]
libmediainfo-24.04-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): [#def103]
libmediainfo-24.04-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): [#def104]
libmediainfo-24.04-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): [#def105]
libmediainfo-24.04-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): [#def106]
libmediainfo-24.04-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): [#def107]
libmediainfo-24.04-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): [#def108]
libmediainfo-24.04-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): [#def109]
libmediainfo-24.04-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): [#def110]
libmediainfo-24.04-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): [#def111]
libmediainfo-24.04-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): [#def112]
libmediainfo-24.04-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): [#def113]
libmediainfo-24.04-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): [#def114]
libmediainfo-24.04-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): [#def115]
libmediainfo-24.04-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): [#def116]
libmediainfo-24.04-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): [#def117]
libmediainfo-24.04-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): [#def118]
libmediainfo-24.04-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): [#def119]
libmediainfo-24.04-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): [#def120]
libmediainfo-24.04-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): [#def121]
libmediainfo-24.04-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): [#def122]
libmediainfo-24.04-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): [#def123]
libmediainfo-24.04-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): [#def124]
libmediainfo-24.04-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): [#def125]
libmediainfo-24.04-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): [#def126]
libmediainfo-24.04-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): [#def127]
libmediainfo-24.04-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): [#def128]
libmediainfo-24.04-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): [#def129]
libmediainfo-24.04-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): [#def130]
libmediainfo-24.04-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): [#def131]
libmediainfo-24.04-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): [#def132]
libmediainfo-24.04-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): [#def133]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::gain_Check(file_adm_private*)’
libmediainfo-24.04-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): [#def134]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::coefficient_Check(file_adm_private*)’
libmediainfo-24.04-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): [#def135]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::matrix_Check(file_adm_private*)’
libmediainfo-24.04-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): [#def136]
libmediainfo-24.04-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): [#def137]
libmediainfo-24.04-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): [#def138]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::objectDivergence_Check(file_adm_private*)’
libmediainfo-24.04-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): [#def139]
libmediainfo-24.04-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): [#def140]
libmediainfo-24.04-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): [#def141]
libmediainfo-24.04-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): [#def142]
libmediainfo-24.04-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): [#def143]
libmediainfo-24.04-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): [#def144]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In function ‘void MediaInfoLib::zoneExclusion_Check(file_adm_private*)’
libmediainfo-24.04-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): [#def145]
libmediainfo-24.04-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): [#def146]
libmediainfo-24.04-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.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:4165:60: note: trimmed 1 message(s) with length over 512

Error: COMPILER_WARNING (CWE-563): [#def147]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In member function ‘int MediaInfoLib::file_adm_private::audioFormatExtended()’
libmediainfo-24.04-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): [#def148]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In member function ‘int MediaInfoLib::file_adm_private::frameHeader()’
libmediainfo-24.04-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): [#def149]
libmediainfo-24.04-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.04-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): [#def150]
libmediainfo-24.04-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): [#def151]
libmediainfo-24.04-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): [#def152]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Adm::Streams_Fill()’
libmediainfo-24.04-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): [#def153]
libmediainfo-24.04-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): [#def154]
libmediainfo-24.04-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): [#def155]
libmediainfo-24.04-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): [#def156]
libmediainfo-24.04-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): [#def157]
libmediainfo-24.04-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): [#def158]
libmediainfo-24.04-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): [#def159]
libmediainfo-24.04-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): [#def160]
libmediainfo-24.04-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): [#def161]
libmediainfo-24.04-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): [#def162]
libmediainfo-24.04-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): [#def163]
libmediainfo-24.04-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): [#def164]
libmediainfo-24.04-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): [#def165]
libmediainfo-24.04-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): [#def166]
libmediainfo-24.04-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): [#def167]
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def168]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adpcm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def169]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Als.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def170]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Amr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def171]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Amv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def172]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ape.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def173]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Aptx100.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-1164): [#def174]
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def175]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Au.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def176]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Caf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def177]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Celt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def178]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_ChannelGrouping.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def179]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_ChannelSplitting.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def180]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_ChannelSplitting.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_ChannelSplitting::Streams_Fill()’
libmediainfo-24.04-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: CLANG_WARNING: [#def181]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_ChannelSplitting.cpp:116:16: warning[deadcode.DeadStores]: Value stored to 'Pos' during its initialization is never read
#  114|           Parser.Accept();
#  115|           Fill(&Parser);
#  116|->         size_t Pos=Count_Get(Stream_Audio);
#  117|           Merge(Parser);
#  118|   

Error: CPPCHECK_WARNING: [#def182]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyAudioMetadata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def183]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyAudioMetadata.cpp: scope_hint: At global scope
libmediainfo-24.04-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): [#def184]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyAudioMetadata.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DolbyAudioMetadata::Dolby_Atmos_Supplemental_Metadata_Segment()’
libmediainfo-24.04-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): [#def185]
libmediainfo-24.04-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.04-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: CLANG_WARNING: [#def186]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyAudioMetadata.cpp:532:18: warning[deadcode.DeadStores]: Value stored to 'PosI' during its initialization is never read
#  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: CPPCHECK_WARNING: [#def187]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def188]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DolbyE::guard_band()’
libmediainfo-24.04-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: CLANG_WARNING: [#def189]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:2051:13: warning[deadcode.DeadStores]: Value stored to 'Buffer_Size_Save' is never read
# 2049|               Buffer=NewBuffer;

# 2050|               Buffer_Offset_Save=Buffer_Offset;

# 2051|->             Buffer_Size_Save=Buffer_Offset;

# 2052|               Element_Offset_Save=Element_Offset;

# 2053|               Element_Size_Save=Element_Size;


Error: COMPILER_WARNING (CWE-457): [#def190]
libmediainfo-24.04-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.04-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): [#def191]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: scope_hint: In member function ‘MediaInfoLib::File_DolbyE::guard_band()’
libmediainfo-24.04-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.04-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): [#def192]
libmediainfo-24.04-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.04-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: CLANG_WARNING: [#def193]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:2318:9: warning[deadcode.DeadStores]: Value stored to 'oa_md_version_bits' is never read
# 2316|           int8u oa_md_version_bits_ext;

# 2317|           Get_S1 (3, oa_md_version_bits_ext,                      "oa_md_version_bits_ext");

# 2318|->         oa_md_version_bits += oa_md_version_bits_ext;

# 2319|       }

# 2320|   


Error: CLANG_WARNING: [#def194]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:2403:33: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 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-457): [#def195]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.h:19: included_from: Included from here.
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:28: included_from: Included from here.
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: scope_hint: In member function ‘MediaInfoLib::File_DolbyE::program_assignment()’
libmediainfo-24.04-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.04-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: CLANG_WARNING: [#def196]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:3025:13: warning[deadcode.DeadStores]: Value stored to 'mini_mixgraph_description_present' is never read
# 3023|               delete BS; BS=BS_Save;

# 3024|               description_packet_data.clear();

# 3025|->             mini_mixgraph_description_present=false; //Indicates that the stream is ready for data filling

# 3026|           }

# 3027|           Element_End0();


Error: COMPILER_WARNING (CWE-563): [#def197]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DolbyE::audio_segment()’
libmediainfo-24.04-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: CLANG_WARNING: [#def198]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:3188:17: warning[deadcode.DeadStores]: Value stored to 'Pos_Begin' is never read
# 3186|               //CRC test

# 3187|               if ((Channel%(DolbyE_Channels[program_config]/2))==0)

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

# 3189|           #endif //MEDIAINFO_TRACE

# 3190|   


Error: COMPILER_WARNING (CWE-563): [#def199]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DolbyE::metadata_extension_segment()’
libmediainfo-24.04-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: CLANG_WARNING: [#def200]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:3260:16: warning[deadcode.DeadStores]: Value stored to 'Pos_Begin' during its initialization is never read
# 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): [#def201]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DolbyE::audio_extension_segment()’
libmediainfo-24.04-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: CLANG_WARNING: [#def202]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:3364:17: warning[deadcode.DeadStores]: Value stored to 'Pos_Begin' is never read
# 3362|               //CRC test

# 3363|               if ((Channel%(DolbyE_Channels[program_config]/2))==0)

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

# 3365|           #endif //MEDIAINFO_TRACE

# 3366|   


Error: CLANG_WARNING: [#def203]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DolbyE.cpp:3592:21: warning[deadcode.DeadStores]: Value stored to 'Channels' is never read
# 3590|                   if (meta[ac3_lfeon])

# 3591|                   {

# 3592|->                     Channels += 1;

# 3593|                       ChannelPositions += __T(", LFE");

# 3594|                       ChannelPositions2 += __T(".1");


Error: CPPCHECK_WARNING: [#def204]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dsdiff.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def205]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dsf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def206]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def207]
libmediainfo-24.04-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): [#def208]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Dts_Common::FileHeader_Parse()’
libmediainfo-24.04-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): [#def209]
libmediainfo-24.04-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): [#def210]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘virtual bool MediaInfoLib::File_Dts_Common::Header_Begin()’
libmediainfo-24.04-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): [#def211]
libmediainfo-24.04-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): [#def212]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘virtual bool MediaInfoLib::File_Dts::Synched_Test()’
libmediainfo-24.04-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): [#def213]
libmediainfo-24.04-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: CLANG_WARNING: [#def214]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:1414:13: warning[deadcode.DeadStores]: Value stored to 'NumAudioPresent' is never read
# 1412|               TEST_SB_END();

# 1413|           TESTELSE_SB_ELSE("Static fields present");

# 1414|->             NumAudioPresent=1;

# 1415|               NumAssets=1;

# 1416|           TESTELSE_SB_END();


Error: COMPILER_WARNING (CWE-195): [#def215]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dts::Core()’
libmediainfo-24.04-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): [#def216]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dts::X96()’
libmediainfo-24.04-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: CLANG_WARNING: [#def217]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp:1842:10: warning[deadcode.DeadStores]: Value stored to 'MaxSize' during its initialization is never read
# 1840|   {

# 1841|       //Coherency check

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

# 1843|       if (Element_Code)

# 1844|       {


Error: COMPILER_WARNING (CWE-563): [#def218]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dts::XLL()’
libmediainfo-24.04-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): [#def219]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dts::XXCH()’
libmediainfo-24.04-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): [#def220]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dts::XCh()’
libmediainfo-24.04-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): [#def221]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Dts.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Dts::XBR()’
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def222]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-843): [#def223]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘int MediaInfoLib::File_DtsUhd::ResolveAudPresParams()’
libmediainfo-24.04-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.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp:27: included_from: Included from here.
libmediainfo-24.04-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): [#def224]
libmediainfo-24.04-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): [#def225]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘int MediaInfoLib::File_DtsUhd::NaviFindIndex(int, ZenLib::int32u*)’
libmediainfo-24.04-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): [#def226]
libmediainfo-24.04-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): [#def227]
libmediainfo-24.04-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): [#def228]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘int MediaInfoLib::File_DtsUhd::ExtractMDChunkObjIDList(MD01*)’
libmediainfo-24.04-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): [#def229]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘int MediaInfoLib::File_DtsUhd::ExtractMultiFrameDistribStaticMD(MD01*)’
libmediainfo-24.04-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): [#def230]
libmediainfo-24.04-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): [#def231]
libmediainfo-24.04-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): [#def232]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘int MediaInfoLib::File_DtsUhd::ParseMD01(MD01*, int)’
libmediainfo-24.04-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.04-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): [#def233]
libmediainfo-24.04-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): [#def234]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘virtual bool MediaInfoLib::File_DtsUhd::Synched_Test()’
libmediainfo-24.04-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): [#def235]
libmediainfo-24.04-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): [#def236]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_DtsUhd.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_DtsUhd::Data_Parse()’
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def237]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_ExtendedModule.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def238]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Flac.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def239]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Iab.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def240]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Iab.cpp:540:9: warning[cplusplus.Move]: Moved-from object 'Objects' of type 'std::vector' is moved
#  538|       if ((Element_Code!=0x00000008 || Element_Offset==Element_Size) && Element_Size>=Element_TotalSize_Get(Element_Level-1))

#  539|       {

#  540|->         Frame.Objects=std::move(F.Objects);

#  541|           Frame_Count++;

#  542|           if (!Status[IsFilled] && Frame_Count>=Frame_Count_Valid)


Error: COMPILER_WARNING (CWE-195): [#def241]
libmediainfo-24.04-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.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Iab.cpp:780:17: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int32u’ {aka ‘unsigned int’} and ‘int’
#  780 |         if (Info!=(1<<Bits)-1 || Bits>=32)
#      |             ~~~~^~~~~~~~~~~~~
#  778|       {

#  779|           Peek_BS(Bits, Info);

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

#  781|           {

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


Error: CPPCHECK_WARNING: [#def242]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_ImpulseTracker.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def243]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_La.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def244]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Mga.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def245]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Midi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def246]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Module.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def247]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Mpc.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def248]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_MpcSv8.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def249]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Mpega.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

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

# 1446|                   HasInfoTag=true;

# 1447|           }


Error: CPPCHECK_WARNING: [#def251]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Mpegh3da.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def252]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_OpenMG.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def253]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Opus.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def254]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Pcm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def255]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Pcm_M2ts.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def256]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Pcm_Vob.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def257]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Ps2Audio.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def258]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Rkau.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def259]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_ScreamTracker3.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def260]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_SmpteSt0302.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def261]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_SmpteSt0331.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def262]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_SmpteSt0337.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

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

# 1280|                   Param_Info1(Smpte_St0337_Adm_multiple_chunk_flag[multiple_chunk_flag]);

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


Error: CLANG_WARNING: [#def264]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_SmpteSt0337.cpp:1279:22: warning[deadcode.DeadStores]: Value stored to 'changedMetadata_flag' during its initialization is never read
# 1277|                   bool format_flag=((data_type_dependent>>2)&1)?true:false;       //1-bit

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

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

# 1280|                   Param_Info1(Smpte_St0337_Adm_multiple_chunk_flag[multiple_chunk_flag]);

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


Error: CPPCHECK_WARNING: [#def265]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Speex.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def266]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Tak.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def267]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Tta.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def268]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_TwinVQ.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def269]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-195): [#def270]
libmediainfo-24.04-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.04-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): [#def271]
libmediainfo-24.04-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): [#def272]
libmediainfo-24.04-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): [#def273]
libmediainfo-24.04-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): [#def274]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp: scope_hint: In member function ‘MediaInfoLib::File_Usac::UsacDecoderConfig()’
libmediainfo-24.04-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.04-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): [#def275]
libmediainfo-24.04-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.04-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): [#def276]
libmediainfo-24.04-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): [#def277]
libmediainfo-24.04-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): [#def278]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp: scope_hint: In member function ‘bool MediaInfoLib::File_Usac::drcInstructionsUniDrc(bool, bool)’
libmediainfo-24.04-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): [#def279]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp: scope_hint: In member function ‘bool MediaInfoLib::File_Usac::loudnessInfo(bool, bool)’
libmediainfo-24.04-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): [#def280]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Usac.cpp: scope_hint: In member function ‘MediaInfoLib::File_Usac::pvcEnvelope(bool)’
libmediainfo-24.04-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.04-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): [#def281]
libmediainfo-24.04-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.04-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.04-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): [#def282]
libmediainfo-24.04-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.04-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): [#def283]
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def284]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Vorbis.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def285]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Wvpk.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def286]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Duplicate/File__Duplicate_MpegTs.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def287]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Duplicate/File__Duplicate__Base.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def288]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Duplicate/File__Duplicate__Writer.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def289]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Export/Export_EbuCore.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def290]
libmediainfo-24.04-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.04-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: CLANG_WARNING: [#def291]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Export/Export_EbuCore.cpp:1312:12: warning[deadcode.DeadStores]: Value stored to 'FrameCount' during its initialization is never read
# 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: CPPCHECK_WARNING: [#def292]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Export/Export_Fims.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def293]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Export/Export_Graph.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def294]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Export/Export_Mpeg7.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def295]
libmediainfo-24.04-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.04-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: CLANG_WARNING: [#def296]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Export/Export_Mpeg7.cpp:1666:14: warning[deadcode.DeadStores]: Value stored to 'Pos2' during its initialization is never read
# 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): [#def297]
libmediainfo-24.04-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.04-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: CPPCHECK_WARNING: [#def298]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Export/Export_Niso.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def299]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Export/Export_PBCore.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def300]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Export/Export_PBCore2.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def301]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/ExternalCommandHelpers.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def302]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File_Other.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def303]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File_Unknown.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def304]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def305]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze.cpp:1714:5: warning[deadcode.DeadStores]: Value stored to 'Buffer_Offset' is never read
# 1712|           return false;

# 1713|       }

# 1714|->     Buffer_Offset=0;

# 1715|   

# 1716|       //All should be OK...


Error: CPPCHECK_WARNING: [#def306]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Buffer.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def307]
libmediainfo-24.04-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.04-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: CLANG_WARNING: [#def308]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Buffer.cpp:1135:12: warning[deadcode.DeadStores]: Value stored to 'Remain' during its initialization is never read
# 1133|           Peek_BS(Size, Size_Mark);

# 1134|       }

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

# 1136|       BS_End();

# 1137|   


Error: COMPILER_WARNING (CWE-563): [#def309]
libmediainfo-24.04-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.04-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: CLANG_WARNING: [#def310]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Buffer.cpp:1224:12: warning[deadcode.DeadStores]: Value stored to 'Remain' during its initialization is never read
# 1222|       }

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

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

# 1225|       BS_End();

# 1226|   


Error: CLANG_WARNING: [#def311]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Buffer.cpp:1265:9: warning[deadcode.DeadStores]: Value stored to 'Info' is never read
# 1263|       {

# 1264|           Trusted_IsNot("Variable Size Value parsing error");

# 1265|->         Info=0;

# 1266|           return;

# 1267|       }


Error: CPPCHECK_WARNING: [#def312]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Element.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def313]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def314]
libmediainfo-24.04-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: [#def315]
libmediainfo-24.04-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): [#def316]
libmediainfo-24.04-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.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams.cpp:2453:9: warning[-Wmisleading-indentation]: this ‘for’ clause does not guard...
# 2453 |         for (size_t i=0; i<4; i++)
#      |         ^~~
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams.cpp:2475:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
# 2475 |             if (!IsOkGlobal)
#      |             ^~
# 2451|           bool IsOkGlobal=true;

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

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

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

# 2455|               {


Error: CPPCHECK_WARNING: [#def317]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams_Finish.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def318]
libmediainfo-24.04-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.04-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: CLANG_WARNING: [#def319]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams_Finish.cpp:181:17: warning[deadcode.DeadStores]: Value stored to 'IsRounded' is never read
#  179|               {

#  180|                   TC_Frames_Sub=TC_Frames_Sub1;

#  181|->                 IsRounded=true;

#  182|               }

#  183|           }


Error: COMPILER_WARNING (CWE-563): [#def320]
libmediainfo-24.04-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.04-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): [#def321]
libmediainfo-24.04-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 OtherID;

# 1360|               Ztring OtherID_String;


Error: COMPILER_WARNING (CWE-563): [#def322]
libmediainfo-24.04-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.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Streams_Finish.cpp:1572:37: warning[-Wunused-variable]: unused variable ‘Places_Size’
# 1572 |             static constexpr size_t Places_Size=sizeof(Places)/sizeof(decltype(*Places));
#      |                                     ^~~~~~~~~~~
# 1570|           {

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

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

# 1573|               for (const auto Place : Places)

# 1574|               {


Error: CPPCHECK_WARNING: [#def323]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Base.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def324]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Duplicate.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def325]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__HasReferences.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def326]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__MultipleParsing.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def327]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/HashWrapper.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def328]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_ArriRaw.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def329]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Bmp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def330]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Bpg.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def331]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Dds.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def332]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Dpx.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def333]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Exr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def334]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Gif.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def335]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Ico.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def336]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Jpeg.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def337]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Pcx.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def338]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Png.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def339]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Psd.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def340]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Rle.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def341]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Tga.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def342]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Image/File_Tiff.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def343]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def344]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfoList.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def345]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfoList_Internal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-569): [#def346]
libmediainfo-24.04-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.04-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: CPPCHECK_WARNING: [#def347]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Config.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def348]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Config_MediaInfo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def349]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Config_PerPackage.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def350]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo_File.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def351]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Inform.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def352]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Inform.cpp:466:36: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'Node_Main'
#  464|       #endif //defined(MEDIAINFO_XML_YES) || defined(MEDIAINFO_JSON_YES)

#  465|   

#  466|->     for (size_t StreamKind=(size_t)Stream_General; StreamKind<Stream_Max; StreamKind++)

#  467|       {

#  468|           //Pour chaque type de flux


Error: CPPCHECK_WARNING: [#def353]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def354]
libmediainfo-24.04-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.04-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): [#def355]
libmediainfo-24.04-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): [#def356]
libmediainfo-24.04-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): [#def357]
libmediainfo-24.04-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): [#def358]
libmediainfo-24.04-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): [#def359]
libmediainfo-24.04-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): [#def360]
libmediainfo-24.04-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): [#def361]
libmediainfo-24.04-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): [#def362]
libmediainfo-24.04-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): [#def363]
libmediainfo-24.04-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): [#def364]
libmediainfo-24.04-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): [#def365]
libmediainfo-24.04-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): [#def366]
libmediainfo-24.04-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): [#def367]
libmediainfo-24.04-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: CLANG_WARNING: [#def368]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:1628:13: warning[core.CallAndMessage]: Called C++ object pointer is null
# 1626|           {

# 1627|               struct MediaInfo_Event_General_Start_0 Event;

# 1628|->             Info->Event_Prepare((struct MediaInfo_Event_Generic*)&Event, MediaInfo_EventCode_Create(MediaInfo_Parser_None, MediaInfo_Event_General_Start, 0), sizeof(struct MediaInfo_Event_General_Start_0));

# 1629|               Event.StreamIDs_Size=0;

# 1630|               Event.Stream_Size=File_Size_;


Error: COMPILER_WARNING (CWE-563): [#def369]
libmediainfo-24.04-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.04-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: CLANG_WARNING: [#def370]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:1946:28: warning[deadcode.DeadStores]: Value stored to 'Temp_Size' during its initialization is never read
# 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): [#def371]
libmediainfo-24.04-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: CLANG_WARNING: [#def372]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:1968:28: warning[deadcode.DeadStores]: Value stored to 'Temp_Size' during its initialization is never read
# 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): [#def373]
libmediainfo-24.04-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: CLANG_WARNING: [#def374]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:1989:28: warning[deadcode.DeadStores]: Value stored to 'Temp_Size' during its initialization is never read
# 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): [#def375]
libmediainfo-24.04-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: CLANG_WARNING: [#def376]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp:2017:28: warning[deadcode.DeadStores]: Value stored to 'Temp_Size' during its initialization is never read
# 2015|                       if (i)

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

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

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

# 2019|                   }


Error: CPPCHECK_WARNING: [#def377]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Aaf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def378]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Ancillary.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-1023): [#def379]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Ancillary.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Ancillary::Header_Parse()’
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def380]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Bdmv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def381]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Cdxa.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def382]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DashMpd.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def383]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DashMpd.cpp:493:107: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'Sequence'
#  491|                   if (string(Root_Item->Value())=="Period")

#  492|                   {

#  493|->                     for (XMLElement* Period_Item=Root_Item->FirstChildElement(); Period_Item; Period_Item=Period_Item->NextSiblingElement())

#  494|                       {

#  495|                           //AdaptationSet (=a stream)


Error: CPPCHECK_WARNING: [#def384]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DcpAm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def385]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DcpCpl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def386]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DcpPkl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def387]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Dpg.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def388]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def389]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif.cpp: scope_hint: At global scope
libmediainfo-24.04-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): [#def390]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif.cpp: scope_hint: In member function ‘virtual bool MediaInfoLib::File_DvDif::Demux_UnpacketizeContainer_Test()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif.cpp:853:16: warning[-Wunused-variable]: unused variable ‘NextPTS’
#  853 |         int64u NextPTS=Speed_FrameCount_system[0]*100100000/3+Speed_FrameCount_system[1]*40000000;
#      |                ^~~~~~~
#  851|           FrameInfo.DTS=FrameInfo.PTS=Speed_FrameCount_system[0]*100100000/3+Speed_FrameCount_system[1]*40000000;

#  852|           Speed_FrameCount_system[system]++;

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

#  854|           Speed_FrameCount_system[system]--;

#  855|       #endif //MEDIAINFO_DVDIF_ANALYZE_YES


Error: CLANG_WARNING: [#def391]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif.cpp:853:16: warning[deadcode.DeadStores]: Value stored to 'NextPTS' during its initialization is never read
#  851|           FrameInfo.DTS=FrameInfo.PTS=Speed_FrameCount_system[0]*100100000/3+Speed_FrameCount_system[1]*40000000;

#  852|           Speed_FrameCount_system[system]++;

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

#  854|           Speed_FrameCount_system[system]--;

#  855|       #endif //MEDIAINFO_DVDIF_ANALYZE_YES


Error: CPPCHECK_WARNING: [#def392]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif_Analysis.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-195): [#def393]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif_Analysis.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_DvDif::Read_Buffer_Continue()’
libmediainfo-24.04-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): [#def394]
libmediainfo-24.04-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: CLANG_WARNING: [#def395]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif_Analysis.cpp:156:32: warning[deadcode.DeadStores]: Value stored to 'Abst_Theory_Max' during its initialization is never read
#  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): [#def396]
libmediainfo-24.04-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): [#def397]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif_Analysis.cpp: scope_hint: In member function ‘void MediaInfoLib::File_DvDif::Errors_Stats_Update()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_DvDif_Analysis.cpp:1816:43: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
# 1816 |                 if (Video_Errors_PerSta[i]==MaxStaErrors)
#      |                     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
# 1814|               bool Video_StaNonZero=false;

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

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

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

# 1818|               size_t Audio_TotalErrors=0;


Error: CPPCHECK_WARNING: [#def398]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Dvdv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def399]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Dvdv.cpp:989:13: warning[deadcode.DeadStores]: Value stored to 'EndAddress' is never read
#  987|           Get_B4 (EndAddress,                                     "End address");

#  988|           if (EndAddress>=Element_Size)

#  989|->             EndAddress=(int32u)Element_Size-1;

#  990|           Skip_C3(                                                "Language");

#  991|           Get_B1 (Flags,                                          "Menu existence flags");


Error: CLANG_WARNING: [#def400]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Dvdv.cpp:1188:13: warning[deadcode.DeadStores]: Value stored to 'EndAddress' is never read
# 1186|           Get_B4 (EndAddress,                                     "End address");

# 1187|           if (EndAddress>=Element_Size)

# 1188|->             EndAddress=(int32u)Element_Size-1;

# 1189|       Element_End0();

# 1190|   


Error: COMPILER_WARNING (CWE-563): [#def401]
libmediainfo-24.04-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.04-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: CLANG_WARNING: [#def402]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Dvdv.cpp:1279:14: warning[deadcode.DeadStores]: Value stored to 'Drop' during its initialization is never read
# 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: CPPCHECK_WARNING: [#def403]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Dxw.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def404]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Flv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def405]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Gxf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def406]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Gxf_TimeCode.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def407]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Gxf_TimeCode.cpp:168:37: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
#  166|       for (size_t Pos=0; Pos<((IsAtc || IsBigEndian)?(size_t)1:(size_t)504); Pos++)

#  167|       {

#  168|->         if (IsAtc || IsBigEndian || Validity[Pos])

#  169|           {

#  170|               Element_Begin1("TimeCode");


Error: CPPCHECK_WARNING: [#def408]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_HdsF4m.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def409]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Hls.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def410]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Ibi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def411]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Ism.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def412]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Ivf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def413]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Lxf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def414]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Lxf.cpp:526:25: warning[deadcode.DeadStores]: Value stored to 'Value' is never read
#  524|                               return (size_t)-1; //Not supported

#  525|                           float64 TimeStamp=((float64)Value)/FrameRate;

#  526|->                         Value=float64_int64s(TimeStamp*1000000000); // In nanoseconds

#  527|                       }

#  528|                       return 1;


Error: CLANG_WARNING: [#def415]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Lxf.cpp:849:25: warning[deadcode.DeadStores]: Value stored to 'BlockSize' is never read
#  847|                           }

#  848|                           break;

#  849|->             default :   BlockSize=0;

#  850|           }

#  851|       FILLING_END();


Error: CPPCHECK_WARNING: [#def416]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_MiXml.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def417]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-569): [#def418]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mk::Segment_Attachments_AttachedFile_FileData()’
libmediainfo-24.04-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): [#def419]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mk::Segment_Cluster_BlockGroup_Block()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.cpp:2882:37: warning[-Wmisleading-indentation]: this ‘else’ clause does not guard...
# 2882 |                                     else
#      |                                     ^~~~
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.h:19: included_from: Included from here.
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze.h:551:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
#  551 |     #define Param_Info1(_A) Param_Info(_A)
#      |                             ^~~~~~~~~~
libmediainfo-24.04-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): [#def420]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__MultipleParsing.cpp:84: included_from: Included from here.
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mk.h: scope_hint: In constructor ‘MediaInfoLib::File_Mk::rawcookedtrack::rawcookedtrack()’
libmediainfo-24.04-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.04-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: CPPCHECK_WARNING: [#def421]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def422]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-1023): [#def423]
libmediainfo-24.04-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): [#def424]
libmediainfo-24.04-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): [#def425]
libmediainfo-24.04-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): [#def426]
libmediainfo-24.04-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): [#def427]
libmediainfo-24.04-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): [#def428]
libmediainfo-24.04-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): [#def429]
libmediainfo-24.04-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): [#def430]
libmediainfo-24.04-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): [#def431]
libmediainfo-24.04-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): [#def432]
libmediainfo-24.04-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): [#def433]
libmediainfo-24.04-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): [#def434]
libmediainfo-24.04-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): [#def435]
libmediainfo-24.04-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): [#def436]
libmediainfo-24.04-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): [#def437]
libmediainfo-24.04-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): [#def438]
libmediainfo-24.04-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): [#def439]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Descriptors.cpp: scope_hint: In function ‘ZenLib::int8u MediaInfoLib::Mpeg4_Descriptors_ToAudioProfileLevelIndication(const profilelevel_struct&)’
libmediainfo-24.04-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): [#def440]
libmediainfo-24.04-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): [#def441]
libmediainfo-24.04-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): [#def442]
libmediainfo-24.04-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): [#def443]
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def444]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def445]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpeg4::mdat_xxxx()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp:1970:12: warning[-Wunused-but-set-variable]: variable ‘Element_Size2’ set but not used
# 1970 |     int64u Element_Size2;
#      |            ^~~~~~~~~~~~~
# 1968|       }

# 1969|   

# 1970|->     int64u Element_Size2;

# 1971|       if (Stream_Temp.HasAtomStyle)

# 1972|       {


Error: COMPILER_WARNING (CWE-195): [#def446]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpeg4::meta_iprp_ipma()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp:2724: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’}
# 2724 |                 if (property_index-1>=meta_iprp_ipma_Entries.size())
#      |                     ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2722|               if (property_index)

# 2723|               {

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

# 2725|                       meta_iprp_ipma_Entries.resize(property_index);

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


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

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

# 8889|->         bool tkhd_SameID=false;

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

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


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

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

# 8932|->         if (moov_trak_tkhd_Height*d)

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

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


Error: COMPILER_WARNING (CWE-563): [#def449]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpeg4::moov_udta_thmb()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp:9708:12: warning[-Wunused-variable]: unused variable ‘MiOpenResult’
# 9708 |     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));
#      |            ^~~~~~~~~~~~
# 9706|       Ztring Demux_Save = MI.Option(__T("Demux_Get"), __T(""));

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

# 9708|->     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));

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

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


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

# 9813|                           {

# 9814|->                             int8u Index=0;

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

# 9816|                               {


Error: CPPCHECK_WARNING: [#def451]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_TimeCode.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def452]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg4_TimeCode.cpp:292:16: warning[deadcode.DeadStores]: Value stored to 'SamplesInThisBlock' during its initialization is never read
#  290|   

#  291|       FILLING_BEGIN();

#  292|->         int64u SamplesInThisBlock=Element_Size/4;

#  293|           if (File_Offset+Buffer_Offset==LastUsedOffset)

#  294|           {


Error: CPPCHECK_WARNING: [#def453]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_MpegPs.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def454]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_MpegTs.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def455]
libmediainfo-24.04-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.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_MpegTs.cpp:859:26: warning[-Wunused-variable]: unused variable ‘Pos_FoundInID’
#  859 |                     bool Pos_FoundInID=false;
#      |                          ^~~~~~~~~~~~~
#  857|                       //Look for PresentationID in descriptor

#  858|                       size_t Pos=0;

#  859|->                     bool Pos_FoundInID=false;

#  860|                       for (;;)

#  861|                       {


Error: CPPCHECK_WARNING: [#def456]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_MpegTs_Duplicate.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def457]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg_Descriptors.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def458]
libmediainfo-24.04-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): [#def459]
libmediainfo-24.04-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): [#def460]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg_Descriptors.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpeg_Descriptors::Descriptor_3F_14()’
libmediainfo-24.04-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): [#def461]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg_Descriptors.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Mpeg_Descriptors::Descriptor_7F_19()’
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def462]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mpeg_Psi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def463]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-457): [#def464]
libmediainfo-24.04-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.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:3579:13: warning[-Wmaybe-uninitialized]: ‘SDTI_TimeCode_StartTimecode_StreamPos_Last’ may be used uninitialized
# 3579 |         Fill(StreamKind_Last, SDTI_TimeCode_StartTimecode_StreamPos_Last, "Delay_SDTI", (int64s)TC.ToMilliseconds(), true, true);
#      |         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:3263:12: note: ‘SDTI_TimeCode_StartTimecode_StreamPos_Last’ was declared here
# 3263 |     size_t SDTI_TimeCode_StartTimecode_StreamPos_Last;
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3577|           if (FrameRate)

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

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

# 3580|       }

# 3581|       if (SystemScheme1_TimeCodeArray_StartTimecode.IsSet())


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

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

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

# 3588|       }

# 3589|   


Error: COMPILER_WARNING (CWE-563): [#def466]
libmediainfo-24.04-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.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:18850:24: warning[-Wunused-variable]: unused variable ‘Parser’
#18850 |         File__Analyze* Parser=NULL;
#      |                        ^~~~~~
#18848|       //Filling

#18849|       #if defined(MEDIAINFO_FFV1_YES)

#18850|->         File__Analyze* Parser=NULL;

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

#18852|           {


Error: COMPILER_WARNING (CWE-569): [#def467]
libmediainfo-24.04-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.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.cpp:19038:16: warning[-Wparentheses]: suggest parentheses around ‘&&’ within ‘||’
#19038 |     if (!Force && (Descriptor->second.MinRefLevel==(int32u)-1 || Descriptor->second.MaxRefLevel==(int32u)-1) || (Descriptor->second.Type!=descriptor::Type_RGBA && Descriptor->second.ColorRange==(int32u)-1))
#      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#19036|       }

#19037|   

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

#19039|           return;

#19040|   


Error: COMPILER_WARNING (CWE-665): [#def468]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Mxf.h:646:17: warning[-Wreorder]:   ‘ZenLib::int64u MediaInfoLib::File_Mxf::mxftimecode::StartTimecode’
#  646 |         int64u  StartTimecode;
#      |                 ^~~~~~~~~~~~~
#  644|       struct mxftimecode

#  645|       {

#  646|->         int64u  StartTimecode;

#  647|           int16u  RoundedTimecodeBase;

#  648|           bool    DropFrame;


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

#  646|           int64u  StartTimecode;

#  647|->         int16u  RoundedTimecodeBase;

#  648|           bool    DropFrame;

#  649|   


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

#  649|   

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

#  651|               : RoundedTimecodeBase(RoundedTimecodeBase_)

#  652|               , StartTimecode(StartTimecode_)


Error: CPPCHECK_WARNING: [#def471]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def472]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:416:13: warning[deadcode.DeadStores]: Value stored to 'Buffer_Temp' is never read
#  414|               auto video_len=aux_plus_video_len>>4;

#  415|               auto audio_len=LittleEndian2int16u(Buffer_Temp);

#  416|->             Buffer_Temp+=2;

#  417|               auto Size=HeaderSize+video_len+audio_len;

#  418|               if (File_Size-(File_Offset+Buffer_Offset)==Size)


Error: COMPILER_WARNING (CWE-195): [#def473]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Nsv::Header_Parse()’
libmediainfo-24.04-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): [#def474]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Nsv::Data_Parse()’
libmediainfo-24.04-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): [#def475]
libmediainfo-24.04-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): [#def476]
libmediainfo-24.04-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): [#def477]
libmediainfo-24.04-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): [#def478]
libmediainfo-24.04-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): [#def479]
libmediainfo-24.04-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): [#def480]
libmediainfo-24.04-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): [#def481]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_StarDiva::Read_Buffer_Continue()’
libmediainfo-24.04-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: CLANG_WARNING: [#def482]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:1414:17: warning[deadcode.DeadStores]: Value stored to 'Skip' is never read
# 1412|               {

# 1413|                   i++;

# 1414|->                 Skip=false;

# 1415|               }

# 1416|           }


Error: COMPILER_WARNING (CWE-457): [#def483]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:1420:19: warning[-Wmaybe-uninitialized]: ‘End’ may be used uninitialized
# 1420 |     Element_Offset=End;
#      |     ~~~~~~~~~~~~~~^~~~
libmediainfo-24.04-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: CLANG_WARNING: [#def484]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nsv.cpp:1420:19: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1418|       Element_End0();

# 1419|   

# 1420|->     Element_Offset=End;

# 1421|       if (Buffer_Size==0x4B000)

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


Error: CPPCHECK_WARNING: [#def485]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nut.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def486]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Nut.cpp:185:13: warning[deadcode.DeadStores]: Value stored to 'tmp_res' is never read
#  183|               Get_VS (tmp_res,                                    "tmp_res");

#  184|           else

#  185|->             tmp_res=0;

#  186|           if(tmp_fields>5)

#  187|               Get_VS(count,                                       "count");


Error: CPPCHECK_WARNING: [#def487]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Ogg.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def488]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Ogg_SubElement.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def489]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_P2_Clip.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def490]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_P2_Clip.cpp:159:45: warning[deadcode.DeadStores]: Value stored to 'ToFill' is never read
#  157|                                                   + (Text[7]-'0')         *1000;

#  158|                                           if (FrameRate)

#  159|->                                             ToFill+=float64_int64s(((Text[9]-'0')*10+(Text[10]-'0'))*1000/FrameRate);

#  160|                                       //Fill(Stream_Video, StreamPos_Last, Video_Delay, ToFill);

#  161|                                       //Fill(Stream_Video, StreamPos_Last, Video_Delay_Source, "P2 Clip");


Error: CLANG_WARNING: [#def491]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_P2_Clip.cpp:291:31: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'Sequence'
#  289|                           }

#  290|   

#  291|->                         Track=Track->NextSiblingElement();

#  292|                       }

#  293|                   }


Error: CPPCHECK_WARNING: [#def492]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Pmp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def493]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Ptx.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def494]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Riff.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def495]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Riff_Elements.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def496]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Riff_Elements.cpp:108:5: warning[deadcode.DeadStores]: Value stored to 'Count' is never read
#  106|           Count++;

#  107|       Text+="/"+Ztring::ToZtring(Count).To_UTF8();

#  108|->     Count=0;

#  109|   

#  110|       if (ChannelMask&0x0008)


Error: COMPILER_WARNING (CWE-563): [#def497]
libmediainfo-24.04-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: CLANG_WARNING: [#def498]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Riff_Elements.cpp:3964:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'Adm_Current'
# 3962|               Adm_chna=Adm_Current;

# 3963|       FILLING_END();

# 3964|-> }

# 3965|   

# 3966|   //---------------------------------------------------------------------------


Error: CPPCHECK_WARNING: [#def499]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Rm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def500]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_SequenceInfo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def501]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_SequenceInfo.cpp:205:20: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'Sequence'
#  203|       }

#  204|   

#  205|->     Element_Offset=File_Size;

#  206|   

#  207|       //All should be OK...


Error: CPPCHECK_WARNING: [#def502]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Skm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def503]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Swf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def504]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Umf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def505]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Vbi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def506]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Wm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def507]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Wm_Elements.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def508]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Wm_Elements.cpp:1438:83: warning[deadcode.DeadStores]: Value stored to 'PacketLength' is never read
# 1436|           switch (PacketLengthType)

# 1437|           {

# 1438|->             case 1 : {int8u  Data; Get_L1(Data,                 "Packet Length"); PacketLength=Data;} break;

# 1439|               case 2 : {int16u Data; Get_L2(Data,                 "Packet Length"); PacketLength=Data;} break;

# 1440|               case 3 :               Get_L4(PacketLength,         "Packet Length");                     break;


Error: CLANG_WARNING: [#def509]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Wm_Elements.cpp:1439:83: warning[deadcode.DeadStores]: Value stored to 'PacketLength' is never read
# 1437|           {

# 1438|               case 1 : {int8u  Data; Get_L1(Data,                 "Packet Length"); PacketLength=Data;} break;

# 1439|->             case 2 : {int16u Data; Get_L2(Data,                 "Packet Length"); PacketLength=Data;} break;

# 1440|               case 3 :               Get_L4(PacketLength,         "Packet Length");                     break;

# 1441|               default: ;


Error: CPPCHECK_WARNING: [#def510]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Wtv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def511]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File_Xdcam_Clip.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def512]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File__ReferenceFilesHelper.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def513]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File__ReferenceFilesHelper.cpp: scope_hint: In function ‘std::wstring MediaInfoLib::URL_Encoded_Decode(const std::wstring&)’
libmediainfo-24.04-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: CLANG_WARNING: [#def514]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File__ReferenceFilesHelper.cpp:1097:29: warning[deadcode.DeadStores]: Value stored to 'Duration' is never read
# 1095|                           }

# 1096|                           else

# 1097|->                             Duration=Sequences[Sequences_Current]->Resources[Pos]->Demux_Offset_DTS+Duration-Sequences[Sequences_Current]->Resources[0]->Demux_Offset_DTS;

# 1098|                       #endif //MEDIAINFO_DEMUX

# 1099|                   }


Error: CPPCHECK_WARNING: [#def515]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File__ReferenceFilesHelper_Resource.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def516]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Multiple/File__ReferenceFilesHelper_Sequence.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def517]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/OutputHelpers.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def518]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/OutputHelpers.cpp:407:32: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'Current'
#  405|                       Value=Values.FindValue(FileName, Values(0).Find(Value.substr(1, Value.length()-2)), 0, 1);
#  406|                       if (Value.empty())
#  407|->                         return false;
#  408|                   }
#  409|   

Error: CPPCHECK_WARNING: [#def519]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Reader/Reader_Directory.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def520]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Reader/Reader_File.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def521]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Reader/Reader_libcurl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def522]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Reader/Reader_libcurl.cpp:37: included_from: Included from here.
libmediainfo-24.04-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.04-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:2882:3: note: declared here
# 2882 |   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): [#def523]
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def524]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_ApeTag.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def525]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_Icc.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def526]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_Icc.cpp:331:17: warning[deadcode.DeadStores]: Value stored to 'Offset_Current' is never read
#  329|               {

#  330|                   Skip_XX(Offset_Next-Offset_Current,             "Padding");

#  331|->                 Offset_Current=Offset_Next;

#  332|               }

#  333|               if (Offset_Next<Offset_Begin || Offset_Next>=Offset_End)


Error: CPPCHECK_WARNING: [#def527]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_Id3.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def528]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_Id3v2.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def529]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_Id3v2.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Id3v2::APIC()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_Id3v2.cpp:989:12: warning[-Wunused-variable]: unused variable ‘MiOpenResult’
#  989 |     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));
#      |            ^~~~~~~~~~~~
#  987|       Ztring Demux_Save = MI.Option(__T("Demux_Get"), __T(""));

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

#  989|->     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));

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

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


Error: CLANG_WARNING: [#def530]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_Id3v2.cpp:989:12: warning[deadcode.DeadStores]: Value stored to 'MiOpenResult' during its initialization is never read
#  987|       Ztring Demux_Save = MI.Option(__T("Demux_Get"), __T(""));

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

#  989|->     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));

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

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


Error: CPPCHECK_WARNING: [#def531]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_Lyrics3.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def532]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_Lyrics3v2.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def533]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_PropertyList.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def534]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_VorbisCom.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def535]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File_Xmp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def536]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Tag/File__Tags.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def537]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_AribStdB24B37.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def538]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Cdp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def539]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Cmml.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def540]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_DtvccTransport.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def541]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_DvbSubtitle.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def542]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Eia608.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-195): [#def543]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Eia608.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Eia608::PreambleAddressCode(ZenLib::int8u, ZenLib::int8u)’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Eia608.cpp:710:148: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
#  710 |         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))
#  708|       if (!TextMode)

#  709|       {

#  710|->         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))

#  711|           {

#  712|               Streams[StreamPos]->Count_PaintOn++;


Error: CPPCHECK_WARNING: [#def544]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Eia708.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def545]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Kate.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def546]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_N19.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-569): [#def547]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_N19.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_N19::FileHeader_Parse()’
libmediainfo-24.04-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: CLANG_WARNING: [#def548]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_N19.cpp:772:13: warning[deadcode.DeadStores]: Value stored to 'Row_Pos' is never read
#  770|               List.Separator_Set(0, EOL);

#  771|               List.Write(TF);

#  772|->             Row_Pos=0;

#  773|               if (VP+List.size()>Row_Max)

#  774|               {


Error: CPPCHECK_WARNING: [#def549]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_OtherText.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def550]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Pdf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def551]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Pgs.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def552]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Scc.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def553]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Scte20.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def554]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Sdp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def555]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_SubRip.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def556]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Teletext.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def557]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_TimedText.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def558]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Text/File_Ttml.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def559]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/TimeCode.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def560]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_AfdBarData.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def561]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Aic.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def562]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Av1.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def563]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Av1.cpp:271:9: warning[deadcode.DeadStores]: Value stored to 'decoder_model_info_present_flag' is never read
#  269|       {

#  270|           Get_S1 ( 5, seq_level_idx[0],                           "seq_level_idx[0]");

#  271|->         decoder_model_info_present_flag=false;

#  272|           seq_tier[0]=false;

#  273|       }


Error: CPPCHECK_WARNING: [#def564]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-457): [#def565]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp: scope_hint: In member function ‘MediaInfoLib::File_Avc::Header_Parse()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp:1883:9: warning[-Wmaybe-uninitialized]: ‘Size’ may be used uninitialized
# 1883 |         if (Size>Element_Size-Element_Offset)
#      |         ^~
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp:1855:16: note: ‘Size’ was declared here
# 1855 |         int64u Size;
#      |                ^~~~
# 1881|                       break;

# 1882|           }

# 1883|->         if (Size>Element_Size-Element_Offset)

# 1884|           {

# 1885|               if (File_Offset+Buffer_Size==File_Size)


Error: COMPILER_WARNING (CWE-563): [#def566]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Avc::slice_header()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp:2397:16: warning[-Wunused-but-set-variable]: variable ‘TemporalReferences_Offset_pic_order_cnt_lsb_Diff’ set but not used
# 2397 |         int32s TemporalReferences_Offset_pic_order_cnt_lsb_Diff=0;
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2395|               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));

# 2396|   

# 2397|->         int32s TemporalReferences_Offset_pic_order_cnt_lsb_Diff=0;

# 2398|           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

# 2399|           {


Error: COMPILER_WARNING (CWE-563): [#def567]
libmediainfo-24.04-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.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp:4277:13: warning[-Wunused-variable]: unused variable ‘constraint_set1_flag’
# 4277 |     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;
#      |             ^~~~~~~~~~~~~~~~~~~~
# 4275|       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;

# 4276|       int8u   profile_idc, constraint_set_flags, level_idc;

# 4277|->     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;

# 4278|       Get_B1 (profile_idc,                                        "profile_idc");

# 4279|       Get_B1 (constraint_set_flags,                               "constraint_sett_flags");


Error: COMPILER_WARNING (CWE-563): [#def568]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp:4277:35: warning[-Wunused-variable]: unused variable ‘constraint_set3_flag’
# 4277 |     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;
#      |                                   ^~~~~~~~~~~~~~~~~~~~
# 4275|       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;

# 4276|       int8u   profile_idc, constraint_set_flags, level_idc;

# 4277|->     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;

# 4278|       Get_B1 (profile_idc,                                        "profile_idc");

# 4279|       Get_B1 (constraint_set_flags,                               "constraint_sett_flags");


Error: CPPCHECK_WARNING: [#def569]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc_Duplicate.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def570]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_AvsV.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def571]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Canopus.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def572]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_CineForm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def573]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Dirac.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def574]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_DolbyVisionMetadata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def575]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Ffv1.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-786): [#def576]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Ffv1.cpp:1459: error[negativeIndex]: Array 'sample[2]' accessed at index sample[*][-1], which is out of bounds.
# 1457|           swap(sample[0], sample[1]);

# 1458|   

# 1459|->         sample[1][-1] = sample[0][0];

# 1460|           sample[0][current_slice->w]  = sample[0][current_slice->w - 1];

# 1461|   


Error: CPPCHECK_WARNING (CWE-786): [#def577]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Ffv1.cpp:1510: error[negativeIndex]: Array 'sample[4][2]' accessed at index sample[*][*][-1], which is out of bounds.
# 1508|               swap(sample[c][0], sample[c][1]);

# 1509|   

# 1510|->             sample[c][1][-1]= sample[c][0][0  ];

# 1511|               sample[c][0][current_slice->w]= sample[c][0][current_slice->w - 1];

# 1512|   


Error: COMPILER_WARNING (CWE-195): [#def578]
libmediainfo-24.04-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.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Ffv1.cpp:1835:15: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘MediaInfoLib::FFV1::pixel_t’ {aka ‘int’} and ‘unsigned int’
# 1835 |     if (scale > 32768U)
#      |         ~~~~~~^~~~~~~~
# 1833|   

# 1834|       scale *= 2 * v - 1;

# 1835|->     if (scale > 32768U)

# 1836|       {

# 1837|           Element_Error("FFV1-HEADER-QuantizationTable-scale:1");


Error: CPPCHECK_WARNING: [#def579]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Flic.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def580]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Fraps.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def581]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_H263.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def582]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-195): [#def583]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp: scope_hint: In member function ‘virtual bool MediaInfoLib::File_Hevc::Demux_UnpacketizeContainer_Test()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:685:21: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
#  685 |             if (Size<lengthSizeMinusOne+1+2 || Buffer_Offset+Size>Buffer_Size || (Buffer_Offset+Size!=Buffer_Size && Buffer_Offset+Size+lengthSizeMinusOne+1>Buffer_Size))
#      |                 ~~~~^~~~~~~~~~~~~~~~~~~~~~~
#  683|   

#  684|               //Coherency checking

#  685|->             if (Size<lengthSizeMinusOne+1+2 || Buffer_Offset+Size>Buffer_Size || (Buffer_Offset+Size!=Buffer_Size && Buffer_Offset+Size+lengthSizeMinusOne+1>Buffer_Size))

#  686|                   Size=Buffer_Size-Buffer_Offset;

#  687|               size_t Buffer_Offset_Temp=Buffer_Offset+lengthSizeMinusOne+1;


Error: COMPILER_WARNING (CWE-195): [#def584]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Hevc::Header_Parse()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1132:17: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int32u’ {aka ‘unsigned int’} and ‘int’
# 1132 |         if (Size<lengthSizeMinusOne+1+2 || Buffer_Offset+Size>Buffer_Size || (Buffer_Offset+Size!=Buffer_Size && Buffer_Offset+Size+lengthSizeMinusOne+1>Buffer_Size))
#      |             ~~~~^~~~~~~~~~~~~~~~~~~~~~~
# 1130|   

# 1131|           //Coherency checking

# 1132|->         if (Size<lengthSizeMinusOne+1+2 || Buffer_Offset+Size>Buffer_Size || (Buffer_Offset+Size!=Buffer_Size && Buffer_Offset+Size+lengthSizeMinusOne+1>Buffer_Size))

# 1133|               Size=Buffer_Size-Buffer_Offset;

# 1134|   


Error: COMPILER_WARNING (CWE-563): [#def585]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Hevc::video_parameter_set()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1653:52: warning[-Wunused-value]: for increment expression has no effect
# 1653 |         for (auto Bits=Data_BS_Remain()%8; Bits--; Bits)
#      |                                                    ^~~~
# 1651|           int8u view_id_len;

# 1652|           bool splitting_flag, vps_nuh_layer_id_present_flag;

# 1653|->         for (auto Bits=Data_BS_Remain()%8; Bits--; Bits)

# 1654|               Mark_1();

# 1655|           if (vps_max_layers_minus1 && vps_base_layer_internal_flag)


Error: COMPILER_WARNING (CWE-563): [#def586]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1764:15: warning[-Wunused-but-set-variable]: variable ‘IdDirectRefLayer’ set but not used
# 1764 |         int8u IdDirectRefLayer[64][64];
#      |               ^~~~~~~~~~~~~~~~
# 1762|                           DependencyFlag[i][j] = 1;

# 1763|               }

# 1764|->         int8u IdDirectRefLayer[64][64];

# 1765|           int8u IdRefLayer[64][64];

# 1766|           int8u IdPredictedLayer[64][64];


Error: COMPILER_WARNING (CWE-563): [#def587]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1765:15: warning[-Wunused-but-set-variable]: variable ‘IdRefLayer’ set but not used
# 1765 |         int8u IdRefLayer[64][64];
#      |               ^~~~~~~~~~
# 1763|               }

# 1764|           int8u IdDirectRefLayer[64][64];

# 1765|->         int8u IdRefLayer[64][64];

# 1766|           int8u IdPredictedLayer[64][64];

# 1767|           int8u NumDirectRefLayers[64];


Error: COMPILER_WARNING (CWE-563): [#def588]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1768:15: warning[-Wunused-but-set-variable]: variable ‘NumRefLayers’ set but not used
# 1768 |         int8u NumRefLayers[64];
#      |               ^~~~~~~~~~~~
# 1766|           int8u IdPredictedLayer[64][64];

# 1767|           int8u NumDirectRefLayers[64];

# 1768|->         int8u NumRefLayers[64];

# 1769|           int8u NumPredictedLayers[64];

# 1770|           int8u TreePartitionLayerIdList[64][64];


Error: COMPILER_WARNING (CWE-195): [#def589]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1823:27: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘ZenLib::int32u’ {aka ‘unsigned int’}
# 1823 |         for (int i = 0; i < num_add_layer_sets; i++)
#      |                         ~~^~~~~~~~~~~~~~~~~~~~
# 1821|           vector<vector<int32u> > highest_layer_idx_plus1List;

# 1822|           highest_layer_idx_plus1List.resize(num_add_layer_sets);

# 1823|->         for (int i = 0; i < num_add_layer_sets; i++)

# 1824|           {

# 1825|               highest_layer_idx_plus1List[i].reserve(NumIndependentLayers);


Error: COMPILER_WARNING (CWE-195): [#def590]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1834:27: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘ZenLib::int32u’ {aka ‘unsigned int’}
# 1834 |         for (int i = 0; i < num_add_layer_sets; i++)
#      |                         ~~^~~~~~~~~~~~~~~~~~~~
# 1832|               }

# 1833|           }

# 1834|->         for (int i = 0; i < num_add_layer_sets; i++)

# 1835|           {

# 1836|               int32u layerNum = 0;


Error: COMPILER_WARNING (CWE-195): [#def591]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1865:62: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘ZenLib::int32u’ {aka ‘unsigned int’}
# 1865 |         for (int i = vps_base_layer_internal_flag ? 2 : 1; i <= vps_num_profile_tier_level_minus1; i++)
#      |                                                            ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1863|           int32u vps_num_profile_tier_level_minus1;

# 1864|           Get_UE(vps_num_profile_tier_level_minus1,               "vps_num_profile_tier_level_minus1");

# 1865|->         for (int i = vps_base_layer_internal_flag ? 2 : 1; i <= vps_num_profile_tier_level_minus1; i++)

# 1866|           {

# 1867|               bool vps_profile_present_flag;


Error: CLANG_WARNING: [#def592]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1881:13: warning[deadcode.DeadStores]: Value stored to 'num_add_olss' is never read
# 1879|           else

# 1880|           {

# 1881|->             num_add_olss = 0;

# 1882|           }

# 1883|           Skip_BS(Data_BS_Remain(),                               "(Not parsed)");


Error: CLANG_WARNING: [#def593]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:2203:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'vui_parameters_Item'
# 2201|   

# 2202|           //NextCode

# 2203|->         NextCode_Clear();

# 2204|           NextCode_Add(34);

# 2205|   


Error: CLANG_WARNING: [#def594]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:3276:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>' is a garbage value
# 3274|                   IsHDRplus=false;

# 3275|               for(int8u i=0; i<4; i++)

# 3276|->                 if (maxscl[i]>100000)

# 3277|                       IsHDRplus=false;

# 3278|               if (IsHDRplus)


Error: COMPILER_WARNING (CWE-563): [#def595]
libmediainfo-24.04-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.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:3748:12: warning[-Wunused-but-set-variable]: variable ‘left_view_id0’ set but not used
# 3748 |     int32u left_view_id0, right_view_id0;
#      |            ^~~~~~~~~~~~~
# 3746|       auto End=Data_BS_Remain()-payloadSize*8;

# 3747|       int32u prec_ref_display_width, num_ref_displays_minus1;

# 3748|->     int32u left_view_id0, right_view_id0;

# 3749|       bool ref_viewing_distance_flag;

# 3750|       Get_UE (prec_ref_display_width,                             "prec_ref_display_width");


Error: COMPILER_WARNING (CWE-563): [#def596]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:3748:27: warning[-Wunused-but-set-variable]: variable ‘right_view_id0’ set but not used
# 3748 |     int32u left_view_id0, right_view_id0;
#      |                           ^~~~~~~~~~~~~~
# 3746|       auto End=Data_BS_Remain()-payloadSize*8;

# 3747|       int32u prec_ref_display_width, num_ref_displays_minus1;

# 3748|->     int32u left_view_id0, right_view_id0;

# 3749|       bool ref_viewing_distance_flag;

# 3750|       Get_UE (prec_ref_display_width,                             "prec_ref_display_width");


Error: CLANG_WARNING: [#def597]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:3776:13: warning[deadcode.DeadStores]: Value stored to 'left_view_id0' is never read
# 3774|           if (!i)

# 3775|           {

# 3776|->             left_view_id0=left_view_id;

# 3777|               right_view_id0=right_view_id;

# 3778|           }


Error: CLANG_WARNING: [#def598]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:3777:13: warning[deadcode.DeadStores]: Value stored to 'right_view_id0' is never read
# 3775|           {

# 3776|               left_view_id0=left_view_id;

# 3777|->             right_view_id0=right_view_id;

# 3778|           }

# 3779|           Get_S1 (6, exponent_ref_display_width,                  "exponent_ref_display_width");


Error: COMPILER_WARNING (CWE-195): [#def599]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp: scope_hint: In member function ‘void MediaInfoLib::File_Hevc::slice_segment_header()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:3935: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’}
# 3935 |         if (pic_order_cnt>=TemporalReferences.size()/4 || pic_order_cnt<=-((int64s)TemporalReferences.size()/4))
#      |             ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3933|       {

# 3934|           int64s pic_order_cnt=float64_int64s(int64s(FrameInfo.PTS-pic_order_cnt_DTS_Ref)*FrameRate/1000000000);

# 3935|->         if (pic_order_cnt>=TemporalReferences.size()/4 || pic_order_cnt<=-((int64s)TemporalReferences.size()/4))

# 3936|               pic_order_cnt_DTS_Ref=(int64u)-1; // Incoherency in DTS? Disabling compute by DTS, TODO: more generic test (all formats)

# 3937|       }


Error: CLANG_WARNING: [#def600]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:4341:17: warning[deadcode.DeadStores]: Value stored to 'cpb_cnt_minus1' is never read
# 4339|               {

# 4340|                   Trusted_IsNot("cpb_cnt_minus1 too high");

# 4341|->                 cpb_cnt_minus1=0;

# 4342|                   return;

# 4343|               }


Error: CLANG_WARNING: [#def601]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:4354:13: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 4352|                                                                                           dpb_output_delay_length_minus1

# 4353|                                                                                         );

# 4354|->         if (nal_hrd_parameters_present_flag)

# 4355|               sub_layer_hrd_parameters(xxL_Common, bit_rate_scale, cpb_size_scale, cpb_cnt_minus1, NAL); //TODO: save HRD per NumSubLayer

# 4356|           if (vcl_hrd_parameters_present_flag)


Error: CLANG_WARNING: [#def602]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:4404:1: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 4402|                                                                                       SchedSel

# 4403|                                                                                    );

# 4404|-> }

# 4405|   

# 4406|   //---------------------------------------------------------------------------


Error: CPPCHECK_WARNING: [#def603]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_HuffYuv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def604]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Lagarith.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def605]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Mpeg4v.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def606]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Mpeg4v.cpp:1868:73: warning[core.UndefinedBinaryOperatorResult]: The left operand of '*' is a garbage value
# 1866|           if (!Mpeg4v_visual_object_type[visual_object_type][0] && vop_time_increment_resolution)

# 1867|           {

# 1868|->             int16u Time=modulo_time_base*1000+(int16u)vop_time_increment*1000/vop_time_increment_resolution;

# 1869|               while (Time_End_MilliSeconds!=(int16u)-1 && Time+500<Time_End_MilliSeconds)

# 1870|                   Time+=1000;


Error: CPPCHECK_WARNING: [#def607]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Mpegv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def608]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_ProRes.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-563): [#def609]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_ProRes.cpp: scope_hint: In function ‘size_t MediaInfoLib::ProRes_Profile_Index(const std::string&)’
libmediainfo-24.04-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: CLANG_WARNING: [#def610]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_ProRes.cpp:332:60: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  330|               Fill(Stream_Video, 0, Video_Height, frameHeight);

#  331|               Fill(Stream_Video, 0, Video_Encoded_Library, ProRes_creatorID(creatorID));

#  332|->             Fill(Stream_Video, 0, Video_ChromaSubsampling, ProRes_chrominance_factor(chrominance_factor));

#  333|               Fill(Stream_Video, 0, Video_ScanType, ProRes_frame_type_ScanType(frame_type));

#  334|               Fill(Stream_Video, 0, Video_ScanOrder, ProRes_frame_type_ScanOrder(frame_type));


Error: CPPCHECK_WARNING: [#def611]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Theora.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def612]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Vc1.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def613]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Vc3.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def614]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Vp8.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def615]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Vp9.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def616]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Vp9.cpp:306:21: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
#  304|                   {

#  305|                       Fill(Stream_Video, 0, Video_Format_Profile, profile, 10, true);

#  306|->                     Fill(Stream_Video, 0, Video_BitDepth, bit_depth, 10, true);

#  307|                       Fill(Stream_Video, 0, Video_ColorSpace, Mpegv_matrix_coefficients_ColorSpace(colorspace));

#  308|                       Fill(Stream_Video, 0, Video_matrix_coefficients, Mpegv_matrix_coefficients(colorspace));


Error: COMPILER_WARNING (CWE-457): [#def617]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Vp9.cpp: scope_hint: In member function ‘MediaInfoLib::File_Vp9::Read_Buffer_Continue()’
libmediainfo-24.04-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.04-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: CLANG_WARNING: [#def618]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Vp9.cpp:316:71: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
#  314|                   }

#  315|               }

#  316|->             Fill(Stream_Video, 0, Video_Width, (int32u)width_minus_one+1);

#  317|               Fill(Stream_Video, 0, Video_Height, (int32u)height_minus_one+1);

#  318|           }


Error: CPPCHECK_WARNING: [#def619]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Vvc.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def620]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Y4m.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def621]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/XmlUtils.cpp:88:12: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
#   86|       const char *ElemNs;

#   87|       LocalName(Elem, ElemNs); // look up namespace

#   88|->     return ElemNs && // ElemNs can be null if Elem uses a bad namespace prefix

#   89|              !strcmp(ElemNs, NameSpace); // compare namespaces

#   90|   }


Error: CPPCHECK_WARNING: [#def622]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfoDLL/MediaInfoJNI.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def623]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c:472:9: warning[deadcode.DeadStores]: Although the value stored to 'nb' is used in the enclosing expression, the value is never actually read from 'nb'
#  470|       }

#  471|   

#  472|->     if((nb = (len - cnt) >> 4) != 0)    /* process whole blocks */

#  473|       {

#  474|   #if defined( USE_VIA_ACE_IF_PRESENT )


Error: GCC_ANALYZER_WARNING (CWE-835): [#def624]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c: scope_hint: In function ‘aes_cfb_encrypt’
libmediainfo-24.04-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: CLANG_WARNING: [#def625]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c:600:9: warning[deadcode.DeadStores]: Although the value stored to 'nb' is used in the enclosing expression, the value is never actually read from 'nb'
#  598|       }

#  599|   

#  600|->     if((nb = (len - cnt) >> 4) != 0)    /* process whole blocks */

#  601|       {

#  602|   #if defined( USE_VIA_ACE_IF_PRESENT )


Error: GCC_ANALYZER_WARNING (CWE-835): [#def626]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c: scope_hint: In function ‘aes_cfb_decrypt’
libmediainfo-24.04-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: CLANG_WARNING: [#def627]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c:738:9: warning[deadcode.DeadStores]: Although the value stored to 'nb' is used in the enclosing expression, the value is never actually read from 'nb'
#  736|       }

#  737|   

#  738|->     if((nb = (len - cnt) >> 4) != 0)   /* process whole blocks */

#  739|       {

#  740|   #if defined( USE_VIA_ACE_IF_PRESENT )


Error: GCC_ANALYZER_WARNING (CWE-835): [#def628]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c: scope_hint: In function ‘aes_ofb_crypt’
libmediainfo-24.04-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: CLANG_WARNING: [#def629]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c:909:47: warning[core.UndefinedBinaryOperatorResult]: The right operand of '^' is a garbage value
#  907|               while(i + AES_BLOCK_SIZE <= blen)

#  908|               {

#  909|->                 lp32(obuf)[0] = lp32(ibuf)[0] ^ lp32(ip)[0];

#  910|                   lp32(obuf)[1] = lp32(ibuf)[1] ^ lp32(ip)[1];

#  911|                   lp32(obuf)[2] = lp32(ibuf)[2] ^ lp32(ip)[2];


Error: CLANG_WARNING: [#def630]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c:922:37: warning[core.UndefinedBinaryOperatorResult]: The right operand of '^' is a garbage value
#  920|               while(i + AES_BLOCK_SIZE <= blen)

#  921|               {

#  922|->                 obuf[ 0] = ibuf[ 0] ^ ip[ 0]; obuf[ 1] = ibuf[ 1] ^ ip[ 1];

#  923|                   obuf[ 2] = ibuf[ 2] ^ ip[ 2]; obuf[ 3] = ibuf[ 3] ^ ip[ 3];

#  924|                   obuf[ 4] = ibuf[ 4] ^ ip[ 4]; obuf[ 5] = ibuf[ 5] ^ ip[ 5];


Error: CLANG_WARNING: [#def631]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aes_modes.c:937:31: warning[core.UndefinedBinaryOperatorResult]: The right operand of '^' is a garbage value
#  935|   

#  936|           while(i++ < blen)

#  937|->             *obuf++ = *ibuf++ ^ ip[b_pos++];

#  938|       }

#  939|   


Error: COMPILER_WARNING: [#def632]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c:21: included_from: Included from here.
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c: scope_hint: In function ‘aes_decrypt_key192’
libmediainfo-24.04-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.04-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.04-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.04-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.04-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.04-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.04-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: [#def633]
libmediainfo-24.04-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.04-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.04-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.04-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.04-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.04-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.04-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: [#def634]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/aes-gladman/aeskey.c: scope_hint: In function ‘aes_decrypt_key256’
libmediainfo-24.04-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.04-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.04-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.04-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.04-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.04-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.04-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: [#def635]
libmediainfo-24.04-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.04-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.04-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.04-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.04-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.04-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.04-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: [#def636]
libmediainfo-24.04-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.04-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.04-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.04-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.04-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.04-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.04-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: [#def637]
libmediainfo-24.04-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.04-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.04-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.04-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.04-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.04-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.04-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): [#def638]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/File__Analyze_Element.cpp:25: included_from: Included from here.
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/base64/base64.h: scope_hint: In function ‘std::string Base64::encode(const std::string&)’
libmediainfo-24.04-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): [#def639]
libmediainfo-24.04-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): [#def640]
libmediainfo-24.04-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): [#def641]
libmediainfo-24.04-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: CPPCHECK_WARNING: [#def642]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/tfsxml/tfsxml.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def643]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/tfsxml/tfsxml.c:555:5: warning[deadcode.DeadStores]: Value stored to 'priv_bak' is never read
#  553|   
#  554|       set_previous_element_is_open();
#  555|->     priv_bak = *priv;
#  556|       while (priv->len) {
#  557|           switch (*priv->buf) {

Error: CLANG_WARNING: [#def644]
libmediainfo-24.04-build/MediaInfoLib/Source/ThirdParty/tfsxml/tfsxml.c:581:21: warning[deadcode.DeadStores]: Value stored to 'priv_bak' is never read
#  579|                           return 0;
#  580|                       }
#  581|->                     priv_bak = *priv;
#  582|                       break;
#  583|                   }

Error: COMPILER_WARNING (CWE-1164): [#def645]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:42: included_from: Included from here.
libmediainfo-24.04-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-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-127.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibmediainfo-24.04-1.fc41
store-results-to/tmp/tmp931vxqip/libmediainfo-24.04-1.fc41.tar.xz
time-created2024-07-03 15:57:13
time-finished2024-07-03 16:03:55
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp931vxqip/libmediainfo-24.04-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp931vxqip/libmediainfo-24.04-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9