Skip to content

Commit 7aa1179

Browse files
author
Clement Champetier
committed
VideoProperties: refactored getBitRate method
Use Frame::getEncodedSize() method.
1 parent 742d9d9 commit 7aa1179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/properties/VideoProperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ size_t VideoProperties::getBitRate() const
354354
if(gotFrame)
355355
{
356356
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(54, 7, 100)
357-
gopFramesSize += av_frame_get_pkt_size(&frame.getAVFrame());
357+
gopFramesSize += frame.getEncodedSize();
358358
#else
359359
gopFramesSize += pkt.size;
360360
#endif

0 commit comments

Comments
 (0)