Skip to content

Commit 606e043

Browse files
author
Clement Champetier
committed
VideoProperties: get pkt_size with function when getBitRate
According to the documentation, "It [AVFrame::pkt_size] must be accessed using av_frame_get_pkt_size() and av_frame_set_pkt_size()"
1 parent bede28c commit 606e043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/mediaProperty/VideoProperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ size_t VideoProperties::getBitRate() const
430430
if( gotFrame )
431431
{
432432
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( 54, 7, 100 )
433-
gopFramesSize += frame->pkt_size;
433+
gopFramesSize += av_frame_get_pkt_size( frame );
434434
#else
435435
gopFramesSize += pkt.size;
436436
#endif

0 commit comments

Comments
 (0)