MT#55283 fix possible overflow

Change-Id: I6a5eb1b6bcb51cf5d955e79b6dc609e455fac075
Warned-by: Coverity
rfuchs/2010
Richard Fuchs 4 months ago
parent 2340b41ba2
commit dcae1a2277

@ -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)

Loading…
Cancel
Save