Closed paulhiggs closed 10 months ago
The method MediaInfo_Internal::SelectFromExtension in MediaInfo_File.cpp cannot be further extended.
MediaInfo_Internal::SelectFromExtension
MediaInfo_File.cpp
When updating from
#if defined(MEDIAINFO_AVSV_YES) else if (Parser==__T("AvsV")) Info=new File_AvsV(); #endif
to
#if defined(MEDIAINFO_AVSV_YES) else if (Parser==__T("AvsV")) Info=new File_AvsV(); else if (Parser==__T("Avs3")) Info=new File_Avs3(); #endif
we get fatal error C1061: compiler limit: blocks nested too deeply for which a description can be found at https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1061?view=msvc-170. The proposed solution
fatal error C1061: compiler limit: blocks nested too deeply
To fix this error you must refactor your code. In any case, deeply nested code is difficult to understand and reason about.
Perhaps we need an lookup table rather than a large if ... else .... block!
Right, we need something else than this ugly "if else", I'll find another way to do that.
The method
MediaInfo_Internal::SelectFromExtension
inMediaInfo_File.cpp
cannot be further extended.When updating from
to
we get
fatal error C1061: compiler limit: blocks nested too deeply
for which a description can be found at https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1061?view=msvc-170. The proposed solutionPerhaps we need an lookup table rather than a large if ... else .... block!