summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-03-18 13:36:32 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2012-03-18 15:25:25 -0700
commitc346f6304c35e9dfffacc6c71a2b3dfd8913d90b (patch)
treef69735692e2f52ea17874ac8c44d1e5410a75979 /libavcodec/utils.c
parent72ec043af4510723c53c729a67be482a14b7c7f3 (diff)
adpcm: fix nb_samples rounding for adpcm_ima_dk3, and update reference.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 20e9687c9b..fc48f029f6 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1859,7 +1859,7 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
case CODEC_ID_ADPCM_IMA_WAV:
return blocks * (1 + (ba - 4 * ch) / (4 * ch) * 8);
case CODEC_ID_ADPCM_IMA_DK3:
- return blocks * (((ba - 16) * 8 / 3) / ch);
+ return blocks * (((ba - 16) * 2 / 3 * 4) / ch);
case CODEC_ID_ADPCM_IMA_DK4:
return blocks * (1 + (ba - 4 * ch) * 2 / ch);
case CODEC_ID_ADPCM_MS: