We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dc2b40 commit 08a2d24Copy full SHA for 08a2d24
src/AvTranscoder/transcoder/StreamTranscoder.cpp
@@ -327,15 +327,19 @@ void StreamTranscoder::preProcessCodecLatency()
327
return;
328
329
// set a decoder to preload generated frames
330
+ bool wasARewrapCase = false;
331
if(getProcessCase() == eProcessCaseRewrap)
332
+ {
333
switchToGeneratorDecoder();
334
+ wasARewrapCase = true;
335
+ }
336
337
while((latency--) > 0)
338
{
339
processFrame();
340
}
341
- if(getProcessCase() == eProcessCaseRewrap)
342
+ if(wasARewrapCase)
343
_currentDecoder = NULL;
344
345
0 commit comments