Skip to content

Commit 561f975

Browse files
author
Clement Champetier
committed
StreamTranscoder: refactoring processFrame
* If no inputEssence, rewrap. * Else, transcode.
1 parent 6169265 commit 561f975

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/AvTranscoder/Transcoder/StreamTranscoder.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,22 +251,21 @@ StreamTranscoder::~StreamTranscoder()
251251
bool StreamTranscoder::processFrame()
252252
{
253253
++_frameProcessed;
254-
if( _transform )
254+
255+
if( ! _inputEssence )
255256
{
256257
if( _subStreamIndex < 0 )
257258
{
258-
return processTranscode();
259+
return processRewrap();
259260
}
260-
261-
return processTranscode( _subStreamIndex );
261+
return processRewrap( _subStreamIndex );
262262
}
263263

264264
if( _subStreamIndex < 0 )
265265
{
266-
return processRewrap();
266+
return processTranscode();
267267
}
268-
269-
return processRewrap( _subStreamIndex );
268+
return processTranscode( _subStreamIndex );
270269
}
271270

272271
bool StreamTranscoder::processRewrap()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy