diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-05-15 20:45:04 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-05-21 18:49:45 +0200 |
commit | 8c17eea46fea2e56f8a772f6e9658cc208c51d7a (patch) | |
tree | 4ea9594a52112d09c6fc8e958b1d97c5d57cb7a9 /libavcodec/utils.c | |
parent | e7c5dbb4d117591f4ec19a57828155d2009f9bd6 (diff) |
avcodec: add adpcm MTAF decoder
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 11ae4e84c5..7b99526718 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -3601,6 +3601,8 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba, return blocks * ((ba - 4 * ch) * 2 / ch); case AV_CODEC_ID_ADPCM_MS: return blocks * (2 + (ba - 7 * ch) * 2 / ch); + case AV_CODEC_ID_ADPCM_MTAF: + return blocks * (ba - 16) * 2 / ch; } } |