From 909a9ad08df0132c8945c010c3aca3a409c06935 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 28 May 2008 11:59:41 +0000 Subject: [PATCH] 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 */ -- 2.11.0