Skip to content

Commit 718b855

Browse files
author
Clement Champetier
committed
VideoProperties: refactored getBitRate method
Use Frame::getEncodedSize() method.
1 parent 16b2e56 commit 718b855

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
@@ -351,7 +351,7 @@ size_t VideoProperties::getBitRate() const
351351
if(gotFrame)
352352
{
353353
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(54, 7, 100)
354-
gopFramesSize += av_frame_get_pkt_size(&frame.getAVFrame());
354+
gopFramesSize += frame.getEncodedSize();
355355
#else
356356
gopFramesSize += pkt.size;
357357
#endif

0 commit comments

Comments
 (0)