Skip to content

Commit 0e49751

Browse files
author
Valentin Noel
committed
StreamTranscoder: avoid checking every filter graph buffer if the process won't be continued
1 parent 9abcb90 commit 0e49751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/transcoder/StreamTranscoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ bool StreamTranscoder::processTranscode()
579579
if(!_filterGraph->hasFilters() || !_filterGraph->hasBufferedFrames(index))
580580
{
581581
continueProcess = false;
582-
continue;
582+
break;
583583
}
584584
LOG_DEBUG("Some frames remain into filter graph buffer " << index);
585585

0 commit comments

Comments
 (0)