diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-01-25 19:31:44 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-01-30 20:57:37 +0100 |
commit | 280e6e93fc96afbbb73f1987eb3d603f8949ea30 (patch) | |
tree | b8db5770c67f28b5e79ce03c938f6207b6914c1e /libavcodec/utils.c | |
parent | 9bfdd8524e4d3657be4057798bd4f015322827b2 (diff) | |
download | ffmpeg-280e6e93fc96afbbb73f1987eb3d603f8949ea30.tar.gz |
avcodec: add ADPCM XMD decoder
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 94f7ae6877..18a433b1af 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -769,6 +769,9 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba, case AV_CODEC_ID_ADPCM_MTAF: tmp = blocks * (ba - 16LL) * 2 / ch; break; + case AV_CODEC_ID_ADPCM_XMD: + tmp = blocks * 32; + break; } if (tmp) { if (tmp != (int)tmp) |