mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-22 15:00:10 +01:00
avcodec: add ADPCM IMA MOFLEX decoder
This commit is contained in:
@@ -1664,6 +1664,8 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba,
|
||||
if (ch > 0 && ch < INT_MAX/16) {
|
||||
/* calc from frame_bytes and channels */
|
||||
switch (id) {
|
||||
case AV_CODEC_ID_ADPCM_IMA_MOFLEX:
|
||||
return (frame_bytes - 4 * ch) / (128 * ch) * 256;
|
||||
case AV_CODEC_ID_ADPCM_AFC:
|
||||
return frame_bytes / (9 * ch) * 16;
|
||||
case AV_CODEC_ID_ADPCM_PSX:
|
||||
|
||||
Reference in New Issue
Block a user