mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 14:01:27 +00:00
avcodec/adpcm: pick correct step_index for IMA AMV
Fixes #5538 Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
699201ac0e
commit
14992421df
@ -1310,8 +1310,8 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
|
||||
break;
|
||||
case AV_CODEC_ID_ADPCM_IMA_AMV:
|
||||
c->status[0].predictor = sign_extend(bytestream2_get_le16u(&gb), 16);
|
||||
c->status[0].step_index = bytestream2_get_le16u(&gb);
|
||||
bytestream2_skipu(&gb, 4);
|
||||
c->status[0].step_index = bytestream2_get_byteu(&gb);
|
||||
bytestream2_skipu(&gb, 5);
|
||||
if (c->status[0].step_index > 88u) {
|
||||
av_log(avctx, AV_LOG_ERROR, "ERROR: step_index = %i\n",
|
||||
c->status[0].step_index);
|
||||
|
Loading…
Reference in New Issue
Block a user