diff --git a/libavcodec/utils.c b/libavcodec/utils.c index cda1811c09..cd92917485 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1700,7 +1700,7 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba, case AV_CODEC_ID_ADPCM_THP: case AV_CODEC_ID_ADPCM_THP_LE: if (extradata) - return frame_bytes * 14 / (8 * ch); + return frame_bytes * 14LL / (8 * ch); break; case AV_CODEC_ID_ADPCM_XA: return (frame_bytes / 128) * 224 / ch;