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 16f326e commit 1bc5582Copy full SHA for 1bc5582
src/AvTranscoder/Transcoder/StreamTranscoder.cpp
@@ -170,8 +170,8 @@ StreamTranscoder::StreamTranscoder(
170
OutputVideo* outputVideo = new OutputVideo();
171
172
_outputEssence = outputVideo;
173
- ImageDesc srcImageDesc; // @todo better solution ?
174
- outputVideo->setProfile( profile, srcImageDesc );
+ ImageDesc inputImageDesc = static_cast<DummyVideo*>( _inputEssence )->getVideoDesc().getImageDesc();
+ outputVideo->setProfile( profile, inputImageDesc );
175
176
_outputStream = &outputFile.addVideoStream( outputVideo->getVideoDesc() );
177
_sourceBuffer = new Image( outputVideo->getVideoDesc().getImageDesc() );
0 commit comments