This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 84bb5b074817abe9cb39a1cd6a8e07f665351b7f Author: James Almer <[email protected]> AuthorDate: Fri Feb 13 13:02:07 2026 -0300 Commit: James Almer <[email protected]> CommitDate: Tue Feb 17 20:17:23 2026 -0300 avcodec/libopusenc: rescale packet duration when calculating discarded samples Signed-off-by: James Almer <[email protected]> --- libavcodec/libopusenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libopusenc.c b/libavcodec/libopusenc.c index 131886c8ea..927776bbca 100644 --- a/libavcodec/libopusenc.c +++ b/libavcodec/libopusenc.c @@ -511,7 +511,7 @@ static int libopus_encode(AVCodecContext *avctx, AVPacket *avpkt, ff_af_queue_remove(&opus->afq, opus->opts.packet_size, &avpkt->pts, &avpkt->duration); - discard_padding = opus->opts.packet_size - avpkt->duration; + discard_padding = opus->opts.packet_size - ff_samples_from_time_base(avctx, avpkt->duration); // Check if subtraction resulted in an overflow if ((discard_padding < opus->opts.packet_size) != (avpkt->duration > 0)) return AVERROR(EINVAL); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
