Skip to content

Commit ab34bde

Browse files
author
Clement Champetier
committed
Transcoder: fixed video profile computed from the inputs
The width and height should be added as string.
1 parent dc82a7b commit ab34bde

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,10 @@ ProfileLoader::Profile Transcoder::getProfileFromInputs(const std::vector<InputS
356356
std::stringstream ss;
357357
ss << videoProperties->getFps();
358358
profile[constants::avProfileFrameRate] = ss.str();
359-
profile[constants::avProfileWidth] = videoProperties->getWidth();
360-
profile[constants::avProfileHeight] = videoProperties->getHeight();
359+
ss.str(""); ss << videoProperties->getWidth();
360+
profile[constants::avProfileWidth] = ss.str();
361+
ss.str(""); ss << videoProperties->getHeight();
362+
profile[constants::avProfileHeight] = ss.str();
361363
}
362364
// audio
363365
else if(audioProperties != NULL)

0 commit comments

Comments
 (0)