ADPCM IMA Radical decoder

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2013-05-10 16:53:50 -03:00
parent e5e86db178
commit 67fad0d221
12 changed files with 61 additions and 3 deletions

View File

@@ -2883,6 +2883,8 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
return blocks * (((ba - 16) * 2 / 3 * 4) / ch);
case AV_CODEC_ID_ADPCM_IMA_DK4:
return blocks * (1 + (ba - 4 * ch) * 2 / ch);
case AV_CODEC_ID_ADPCM_IMA_RAD:
return blocks * ((ba - 4 * ch) * 2 / ch);
case AV_CODEC_ID_ADPCM_MS:
return blocks * (2 + (ba - 7 * ch) * 2 / ch);
}