From dcae1a2277dee68f12dda957649c6789ec3df2ea Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Sun, 21 Sep 2025 13:35:59 -0400 Subject: [PATCH] MT#55283 fix possible overflow Change-Id: I6a5eb1b6bcb51cf5d955e79b6dc609e455fac075 Warned-by: Coverity --- lib/codeclib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/codeclib.c b/lib/codeclib.c index 3e776b838..d7bf5b65f 100644 --- a/lib/codeclib.c +++ b/lib/codeclib.c @@ -3354,7 +3354,7 @@ static int packetizer_amr(AVPacket *pkt, GString *buf, str *output, encoder_t *e unsigned char *s = (unsigned char *) output->s; // for safe bit shifting *pts = pkt->pts; - *duration = enc->actual_format.clockrate * 20 / 1000; // 160 or 320 + *duration = enc->actual_format.clockrate * 20LL / 1000; // 160 or 320 s[0] = '\xf0'; // no CMR req (4 bits)