Skip to content

Commit f92f917

Browse files
author
Clement Champetier
committed
Transcoder: clean addTranscodeStream when get profile from InputFile
Always need to create an InputFile to get the encofing profile from it, but not necessary add it to our list of InputFile.
1 parent 24a375a commit f92f917

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ void Transcoder::addRewrapStream( const std::string& filename, const size_t stre
291291
void Transcoder::addTranscodeStream( const std::string& filename, const size_t streamIndex, const int subStreamIndex, const double offset )
292292
{
293293
// Get profile from input file
294-
InputFile* referenceFile = addInputFile( filename, streamIndex );
295-
ProfileLoader::Profile profile = getProfileFromFile( *referenceFile, streamIndex );
294+
InputFile inputFile( filename );
295+
ProfileLoader::Profile profile = getProfileFromFile( inputFile, streamIndex );
296296

297297
// override channels parameter to manage demultiplexing
298298
ProfileLoader::Profile::iterator it = profile.find( constants::avProfileChannel );

0 commit comments

Comments
 (0)