Skip to content

Commit ec9eda9

Browse files
author
Clement Champetier
committed
Profile: fix when AVPROFILES si empty
1 parent 3839b06 commit ec9eda9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/AvTranscoder/Profile.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ void Profile::loadProfiles( const std::string& avProfilesPath )
7070

7171
std::string realAvProfilesPath = avProfilesPath;
7272
if( realAvProfilesPath.empty() )
73-
realAvProfilesPath = std::getenv( "AVPROFILES" );
73+
{
74+
if( std::getenv( "AVPROFILES" ) )
75+
realAvProfilesPath = std::getenv( "AVPROFILES" );
76+
else
77+
return;
78+
}
7479

7580
std::vector< std::string > paths;
7681
split( paths, realAvProfilesPath, ":" );

0 commit comments

Comments
 (0)