Skip to content

Commit 1bc5582

Browse files
author
Clement Champetier
committed
StreamTranscoder: fix setProfile of dummy video stream
Get the ImageDesc from the _inputEssence when we set the outputVideo stream.
1 parent 16f326e commit 1bc5582

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AvTranscoder/Transcoder/StreamTranscoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ StreamTranscoder::StreamTranscoder(
170170
OutputVideo* outputVideo = new OutputVideo();
171171

172172
_outputEssence = outputVideo;
173-
ImageDesc srcImageDesc; // @todo better solution ?
174-
outputVideo->setProfile( profile, srcImageDesc );
173+
ImageDesc inputImageDesc = static_cast<DummyVideo*>( _inputEssence )->getVideoDesc().getImageDesc();
174+
outputVideo->setProfile( profile, inputImageDesc );
175175

176176
_outputStream = &outputFile.addVideoStream( outputVideo->getVideoDesc() );
177177
_sourceBuffer = new Image( outputVideo->getVideoDesc().getImageDesc() );

0 commit comments

Comments
 (0)