Skip to content

Commit c0948f1

Browse files
author
Clement Champetier
committed
VideoProperties: get encoded frame size of GOP when fillVector of properties
1 parent 46f983a commit c0948f1

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
@@ -564,13 +564,16 @@ PropertyVector& VideoProperties::fillVector(PropertyVector& data) const
564564
addProperty(data, "minBitRate", &VideoProperties::getMinBitRate);
565565
addProperty(data, "gopSize", &VideoProperties::getGopSize);
566566

567-
std::string gop;
567+
std::stringstream gop;
568568
for(size_t frameIndex = 0; frameIndex < _gopStructure.size(); ++frameIndex)
569569
{
570-
gop += _gopStructure.at(frameIndex).first;
571-
gop += " ";
570+
gop << _gopStructure.at(frameIndex).first;
571+
gop << "(";
572+
gop << _gopStructure.at(frameIndex).second;;
573+
gop << ")";
574+
gop << " ";
572575
}
573-
detail::add(data, "gop", gop);
576+
detail::add(data, "gop", gop.str());
574577
// detail::add( data, "isClosedGop", isClosedGop() );
575578

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

0 commit comments

Comments
 (0)