diff options
author | Zane van Iperen <zane@zanevaniperen.com> | 2020-11-02 08:47:21 +0300 |
---|---|---|
committer | Zane van Iperen <zane@zanevaniperen.com> | 2020-11-09 07:58:30 +0300 |
commit | d6912294d39b5d15cba0236e06e5a3710e57a1a0 (patch) | |
tree | e3c2b479615ba9c25a30d25ec52c9be228789608 /libavcodec/utils.c | |
parent | 2fb764e1f3932ddb5a2a071d238a4db83e6d5a1b (diff) |
avcodec/adpcm_ima_amv: restrict to 1 channel
The format doesn't allow for anything else.
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index db51512e15..008e95c239 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1696,7 +1696,7 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba, case AV_CODEC_ID_ADPCM_IMA_SMJPEG: return (frame_bytes - 4) * 2 / ch; case AV_CODEC_ID_ADPCM_IMA_AMV: - return (frame_bytes - 8) * 2 / ch; + return (frame_bytes - 8) * 2; case AV_CODEC_ID_ADPCM_THP: case AV_CODEC_ID_ADPCM_THP_LE: if (extradata) |