File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
src/AvTranscoder/transcoder Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -326,14 +326,8 @@ void StreamTranscoder::preProcessCodecLatency()
326
326
bool StreamTranscoder::processFrame ()
327
327
{
328
328
if ( isRewrapCase () )
329
- {
330
329
return processRewrap ();
331
- }
332
330
333
- if ( _subStreamIndex < 0 )
334
- {
335
- return processTranscode ();
336
- }
337
331
return processTranscode ( _subStreamIndex );
338
332
}
339
333
@@ -396,7 +390,7 @@ bool StreamTranscoder::processTranscode( const int subStreamIndex )
396
390
}
397
391
398
392
bool decodingStatus = false ;
399
- if ( subStreamIndex == - 1 )
393
+ if ( subStreamIndex < 0 )
400
394
decodingStatus = _currentDecoder->decodeNextFrame ( *_sourceBuffer );
401
395
else
402
396
decodingStatus = _currentDecoder->decodeNextFrame ( *_sourceBuffer, subStreamIndex );
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class AvExport StreamTranscoder
112
112
113
113
ITransform* _transform; // /< Video or audio transform (has ownership)
114
114
115
- int _subStreamIndex; // /< Index of channel that is processed from the input stream (-1 if no demultiplexing).
115
+ int _subStreamIndex; // /< Index of channel that is processed from the input stream (<0 if no demultiplexing).
116
116
117
117
double _offset; // /< Offset, in seconds, at the beginning of the StreamTranscoder.
118
118
You can’t perform that action at this time.
0 commit comments