Revision b9542223 libavcodec/adpcm.c

View differences:

libavcodec/adpcm.c
721 721
    case CODEC_ID_ADPCM_CT:
722 722
        c->status[0].step = c->status[1].step = 511;
723 723
        break;
724
    case CODEC_ID_ADPCM_IMA_WAV:
725
        if (avctx->bits_per_coded_sample != 4) {
726
            av_log(avctx, AV_LOG_ERROR, "Only 4-bit ADPCM IMA WAV files are supported\n");
727
            return -1;
728
        }
729
        break;
724 730
    case CODEC_ID_ADPCM_IMA_WS:
725 731
        if (avctx->extradata && avctx->extradata_size == 2 * 4) {
726 732
            c->status[0].predictor = AV_RL32(avctx->extradata);

Also available in: Unified diff