Browse Source

MT#55283 fix possible overflow

Change-Id: I6a5eb1b6bcb51cf5d955e79b6dc609e455fac075
Warned-by: Coverity
rfuchs/2010
Richard Fuchs 3 months ago
parent
commit
dcae1a2277
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/codeclib.c

+ 1
- 1
lib/codeclib.c View File

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