Skip to content

Commit a695538

Browse files
author
Clement Champetier
committed
Transcoder: refactoring - group switch cases
1 parent ccc77c3 commit a695538

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/AvTranscoder/Transcoder/Transcoder.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,6 @@ void Transcoder::addTranscodeStream( const std::string& filename, const size_t s
239239
switch( referenceFile->getStreamType( streamIndex ) )
240240
{
241241
case AVMEDIA_TYPE_VIDEO:
242-
{
243-
_streamTranscoders.push_back( new StreamTranscoder( referenceFile->getStream( streamIndex ), _outputFile, profile ) );
244-
_inputStreams.push_back( &referenceFile->getStream( streamIndex ) );
245-
break;
246-
}
247242
case AVMEDIA_TYPE_AUDIO:
248243
{
249244
_streamTranscoders.push_back( new StreamTranscoder( referenceFile->getStream( streamIndex ), _outputFile, profile ) );
@@ -267,11 +262,6 @@ void Transcoder::addTranscodeStream( const std::string& filename, const size_t s
267262
switch( referenceFile->getStreamType( streamIndex ) )
268263
{
269264
case AVMEDIA_TYPE_VIDEO:
270-
{
271-
_streamTranscoders.push_back( new StreamTranscoder( referenceFile->getStream( streamIndex ), _outputFile, profile, subStreamIndex ) );
272-
_inputStreams.push_back( &referenceFile->getStream( streamIndex ) );
273-
break;
274-
}
275265
case AVMEDIA_TYPE_AUDIO:
276266
{
277267
_streamTranscoders.push_back( new StreamTranscoder( referenceFile->getStream( streamIndex ), _outputFile, profile, subStreamIndex ) );

0 commit comments

Comments
 (0)