Skip to content

Commit 4cee3de

Browse files
author
Clement Champetier
committed
VideoProperties: get encoded frame size of GOP when fillVector of properties
1 parent 81bc92e commit 4cee3de

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/AvTranscoder/properties/VideoProperties.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,13 +567,16 @@ PropertyVector& VideoProperties::fillVector(PropertyVector& data) const
567567
addProperty(data, "minBitRate", &VideoProperties::getMinBitRate);
568568
addProperty(data, "gopSize", &VideoProperties::getGopSize);
569569

570-
std::string gop;
570+
std::stringstream gop;
571571
for(size_t frameIndex = 0; frameIndex < _gopStructure.size(); ++frameIndex)
572572
{
573-
gop += _gopStructure.at(frameIndex).first;
574-
gop += " ";
573+
gop << _gopStructure.at(frameIndex).first;
574+
gop << "(";
575+
gop << _gopStructure.at(frameIndex).second;;
576+
gop << ")";
577+
gop << " ";
575578
}
576-
detail::add(data, "gop", gop);
579+
detail::add(data, "gop", gop.str());
577580
// detail::add( data, "isClosedGop", isClosedGop() );
578581

579582
addProperty(data, "hasBFrames", &VideoProperties::hasBFrames);

0 commit comments

Comments
 (0)