diff --git a/lib/codeclib.c b/lib/codeclib.c index 73a132504..8ab648df2 100644 --- a/lib/codeclib.c +++ b/lib/codeclib.c @@ -2219,6 +2219,7 @@ static int bcg729_encoder_input(encoder_t *enc, AVFrame **frame) { enc->avpkt.size = len; enc->avpkt.pts = (*frame)->pts; + enc->avpkt.duration = len * 8; // Duration is used by encoder_input_data for pts calculation return 0; }