diff --git a/libavcodec/utils.c b/libavcodec/utils.c index d96b1407e8..670a96af3c 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1676,7 +1676,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;