# HG changeset patch # User michael # Date 1211975981 0 # Node ID d02af7474bff79ab464ae54c37acf3fb4cbdf7c7 # Parent 7cf90c252373b1e2025114e2f17e48eb6286ad5f Prevent 128*1<channels > 2) return -1; /* only stereo or mono =) */ + + if(avctx->trellis && (unsigned)avctx->trellis > 16U){ + av_log(avctx, AV_LOG_ERROR, "invalid trellis size\n"); + return -1; + } + switch(avctx->codec->id) { case CODEC_ID_ADPCM_IMA_WAV: avctx->frame_size = (BLKSIZE - 4 * avctx->channels) * 8 / (4 * avctx->channels) + 1; /* each 16 bits sample gives one nibble */