We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3839b06 commit ec9eda9Copy full SHA for ec9eda9
src/AvTranscoder/Profile.cpp
@@ -70,7 +70,12 @@ void Profile::loadProfiles( const std::string& avProfilesPath )
70
71
std::string realAvProfilesPath = avProfilesPath;
72
if( realAvProfilesPath.empty() )
73
- realAvProfilesPath = std::getenv( "AVPROFILES" );
+ {
74
+ if( std::getenv( "AVPROFILES" ) )
75
+ realAvProfilesPath = std::getenv( "AVPROFILES" );
76
+ else
77
+ return;
78
+ }
79
80
std::vector< std::string > paths;
81
split( paths, realAvProfilesPath, ":" );
0 commit comments