Skip to content

Commit 2be3e90

Browse files
author
Clement Champetier
committed
Update AvTranscoder apps: fit to new way to se profiles
* Update avTranscoder. * Update optionChecker.
1 parent 11b6113 commit 2be3e90

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/avTranscoder/avTranscoder.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ void transcodeVideo( const char* inputfilename, const char* outputFilename )
2626

2727
// init video decoders
2828
InputVideo inputVideo( input.getStream( 0 ) );
29-
Image sourceImage( input.getStream( 0 ).getVideoDesc().getImageDesc() );
29+
ImageDesc imageDesc = input.getStream( 0 ).getVideoDesc().getImageDesc();
30+
Image sourceImage( imageDesc );
3031

3132
// init video encoder
3233
OutputVideo outputVideo;
33-
outputVideo.setProfile( profile.getProfile( "xdcamhd422" ) );
34+
outputVideo.setProfile( profile.getProfile( "xdcamhd422" ), imageDesc );
3435
Image imageToEncode( outputVideo.getVideoDesc().getImageDesc() );
3536

3637
DataStream codedImage;

app/presetChecker/presetChecker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ int main( int argc, char** argv )
2525
if( profile.find( avtranscoder::Profile::avProfileType )->second == avtranscoder::Profile::avProfileTypeVideo )
2626
{
2727
avtranscoder::OutputVideo outputVideo;
28-
outputVideo.setProfile( profile );
28+
outputVideo.setProfile( profile, outputVideo.getVideoDesc().getImageDesc() );
2929
}
3030

3131
if( profile.find( avtranscoder::Profile::avProfileType )->second == avtranscoder::Profile::avProfileTypeAudio )
3232
{
3333
avtranscoder::OutputAudio outputAudio;
34-
outputAudio.setProfile( profile );
34+
outputAudio.setProfile( profile, outputAudio.getAudioDesc().getFrameDesc() );
3535
}
3636

3737
}

0 commit comments

Comments
 (0)