Mercurial > libavcodec.hg
changeset 12269:40d7fc8c7850 libavcodec
Only 4-bit ADPCM IMA WAV files are supported.
author | cehoyos |
---|---|
date | Sun, 25 Jul 2010 14:33:16 +0000 |
parents | 259988e7ad0f |
children | 161c205dcdd2 |
files | adpcm.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/adpcm.c Sun Jul 25 02:42:40 2010 +0000 +++ b/adpcm.c Sun Jul 25 14:33:16 2010 +0000 @@ -721,6 +721,12 @@ case CODEC_ID_ADPCM_CT: c->status[0].step = c->status[1].step = 511; break; + case CODEC_ID_ADPCM_IMA_WAV: + if (avctx->bits_per_coded_sample != 4) { + av_log(avctx, AV_LOG_ERROR, "Only 4-bit ADPCM IMA WAV files are supported\n"); + return -1; + } + break; case CODEC_ID_ADPCM_IMA_WS: if (avctx->extradata && avctx->extradata_size == 2 * 4) { c->status[0].predictor = AV_RL32(avctx->extradata);