On 03/17/2012 08:07 PM, Ronald S. Bultje wrote: > --- > libavcodec/adpcm.c | 2 +- > tests/ref/fate/adpcm-ima-dk3 | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c > index 9abfa3f..2aeaba6 100644 > --- a/libavcodec/adpcm.c > +++ b/libavcodec/adpcm.c > @@ -499,7 +499,7 @@ static int get_nb_samples(AVCodecContext *avctx, > GetByteContext *gb, > case CODEC_ID_ADPCM_IMA_DK3: > if (avctx->block_align > 0) > buf_size = FFMIN(buf_size, avctx->block_align); > - nb_samples = ((buf_size - 16) * 8 / 3) / ch; > + nb_samples = ((buf_size - 16) * 2 / 3 * 4) / ch; > break; > case CODEC_ID_ADPCM_IMA_DK4: > if (avctx->block_align > 0) > diff --git a/tests/ref/fate/adpcm-ima-dk3 b/tests/ref/fate/adpcm-ima-dk3 > index 9aad92b..08c0fd1 100644 > --- a/tests/ref/fate/adpcm-ima-dk3 > +++ b/tests/ref/fate/adpcm-ima-dk3 > @@ -1 +1 @@ > -bb952ae86c72d461aef7583685ec0a4d > +62fbe4db4a49cb044f57f92cce9993c5
LGTM -Justin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
