Skip to content

Commit 3307d22

Browse files
author
Clement Champetier
committed
StreamTranscoder: remove processRewrap( subStreamIndex )
* Can't demultiplexing and re-wrap a stream.
1 parent e960a1b commit 3307d22

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

src/AvTranscoder/transcoder/StreamTranscoder.cpp

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,7 @@ bool StreamTranscoder::processFrame()
283283

284284
if( ! _inputEssence )
285285
{
286-
if( _subStreamIndex < 0 )
287-
{
288-
return processRewrap();
289-
}
290-
return processRewrap( _subStreamIndex );
286+
return processRewrap();
291287
}
292288

293289
if( _subStreamIndex < 0 )
@@ -311,20 +307,6 @@ bool StreamTranscoder::processRewrap()
311307
return true;
312308
}
313309

314-
bool StreamTranscoder::processRewrap( const int subStreamIndex )
315-
{
316-
assert( _inputStream != NULL );
317-
assert( _outputStream != NULL );
318-
319-
CodedData data;
320-
321-
if( ! _inputStream->readNextPacket( data ) )
322-
return false;
323-
_outputStream->wrap( data );
324-
325-
return true;
326-
}
327-
328310
bool StreamTranscoder::processTranscode()
329311
{
330312
assert( _inputEssence != NULL );

src/AvTranscoder/transcoder/StreamTranscoder.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class AvExport StreamTranscoder
7171

7272
private:
7373
bool processRewrap();
74-
bool processRewrap( const int subStreamIndex );
7574
bool processTranscode();
7675
bool processTranscode( const int subStreamIndex );
7776

0 commit comments

Comments
 (0)