ADPCM IMA Radical decoder
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user