Skip to content

Commit 83bea1a

Browse files
author
Clement Champetier
committed
StreamTranscoder: fixed decoding in case of generated stream
1 parent 383143a commit 83bea1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/AvTranscoder/transcoder/StreamTranscoder.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,10 +528,12 @@ bool StreamTranscoder::processTranscode()
528528

529529
LOG_DEBUG("Decode next frame")
530530
bool decodingStatus = true;
531-
for(size_t index = 0; index < _inputDecoders.size(); ++index)
531+
for(size_t index = 0; index < _generators.size(); ++index)
532532
{
533533
if(getProcessCase() == eProcessCaseTranscode)
534534
_currentDecoder = _inputDecoders.at(index);
535+
else
536+
_currentDecoder = _generators.at(index);
535537

536538
if(! _inputStreamDesc.empty() && _inputStreamDesc.at(index).demultiplexing())
537539
decodingStatus = decodingStatus && _currentDecoder->decodeNextFrame(*_decodedData.at(index), _inputStreamDesc.at(index)._channelIndexArray);

0 commit comments

Comments
 (0)