ADPCM: Bump THP channel limit to 14
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
6a074cfa15
commit
3f9fa2d0b5
@ -84,7 +84,7 @@ static const int swf_index_tables[4][16] = {
|
|||||||
/* end of tables */
|
/* end of tables */
|
||||||
|
|
||||||
typedef struct ADPCMDecodeContext {
|
typedef struct ADPCMDecodeContext {
|
||||||
ADPCMChannelStatus status[10];
|
ADPCMChannelStatus status[14];
|
||||||
int vqa_version; /**< VQA version. Used for ADPCM_IMA_WS */
|
int vqa_version; /**< VQA version. Used for ADPCM_IMA_WS */
|
||||||
int has_status;
|
int has_status;
|
||||||
} ADPCMDecodeContext;
|
} ADPCMDecodeContext;
|
||||||
@ -109,7 +109,7 @@ static av_cold int adpcm_decode_init(AVCodecContext * avctx)
|
|||||||
break;
|
break;
|
||||||
case AV_CODEC_ID_ADPCM_THP:
|
case AV_CODEC_ID_ADPCM_THP:
|
||||||
case AV_CODEC_ID_ADPCM_THP_LE:
|
case AV_CODEC_ID_ADPCM_THP_LE:
|
||||||
max_channels = 10;
|
max_channels = 14;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (avctx->channels < min_channels || avctx->channels > max_channels) {
|
if (avctx->channels < min_channels || avctx->channels > max_channels) {
|
||||||
@ -1431,7 +1431,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
case AV_CODEC_ID_ADPCM_THP:
|
case AV_CODEC_ID_ADPCM_THP:
|
||||||
case AV_CODEC_ID_ADPCM_THP_LE:
|
case AV_CODEC_ID_ADPCM_THP_LE:
|
||||||
{
|
{
|
||||||
int table[10][16];
|
int table[14][16];
|
||||||
int ch;
|
int ch;
|
||||||
|
|
||||||
#define THP_GET16(g) \
|
#define THP_GET16(g) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user