Skip to content

Commit ab2c4e8

Browse files
author
Clement Champetier
committed
util: get formats without long_name when getAvailableFormatsNames
1 parent f2ce6ed commit ab2c4e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AvTranscoder/util.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ NamesArray getAvailableFormatsNames()
128128
if(fmt->video_codec == AV_CODEC_ID_NONE)
129129
continue;
130130

131-
if(!fmt->name && !fmt->long_name)
131+
if(!fmt->name)
132132
continue;
133133

134134
formatsNames.push_back(
135-
std::make_pair(std::string(fmt->name ? fmt->name : ""), std::string(fmt->long_name ? fmt->long_name : "")));
135+
std::make_pair(std::string(fmt->name), std::string(fmt->long_name ? fmt->long_name : "")));
136136
}
137137
return formatsNames;
138138
}

0 commit comments

Comments
 (0)