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 2ffb8b8 commit dc82a7bCopy full SHA for dc82a7b
src/AvTranscoder/transcoder/Transcoder.cpp
@@ -79,6 +79,13 @@ void Transcoder::addStream(const std::vector<InputStreamDesc>& inputStreamDescAr
79
if(inputStreamDescArray.empty())
80
throw std::runtime_error("Need a description of at least one input stream to start the process.");
81
82
+ // If there is one input, switch to an easier case
83
+ if(inputStreamDescArray.size() == 1)
84
+ {
85
+ addStream(inputStreamDescArray.at(0), profileName, offset);
86
+ return;
87
+ }
88
+
89
// Get encoding profile
90
ProfileLoader::Profile encodingProfile;
91
if(profileName.empty())
0 commit comments