Skip to content

Commit dc82a7b

Browse files
author
Clement Champetier
committed
Transcoder: fixed rewrap case when we add a list of one input
1 parent 2ffb8b8 commit dc82a7b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ void Transcoder::addStream(const std::vector<InputStreamDesc>& inputStreamDescAr
7979
if(inputStreamDescArray.empty())
8080
throw std::runtime_error("Need a description of at least one input stream to start the process.");
8181

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+
8289
// Get encoding profile
8390
ProfileLoader::Profile encodingProfile;
8491
if(profileName.empty())

0 commit comments

Comments
 (0)