Commit ba5d2890 authored by Justin Ruggles's avatar Justin Ruggles

adpcm: simplify reading of Funcom ISS frame header.

parent 5c9eb4fa
...@@ -593,13 +593,11 @@ static int adpcm_decode_frame(AVCodecContext *avctx, ...@@ -593,13 +593,11 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
} }
break; break;
case CODEC_ID_ADPCM_IMA_ISS: case CODEC_ID_ADPCM_IMA_ISS:
c->status[0].predictor = (int16_t)AV_RL16(src + 0); for (channel = 0; channel < avctx->channels; channel++) {
c->status[0].step_index = src[2]; cs = &c->status[channel];
src += 4; cs->predictor = (int16_t)bytestream_get_le16(&src);
if(st) { cs->step_index = *src++;
c->status[1].predictor = (int16_t)AV_RL16(src + 0); src++;
c->status[1].step_index = src[2];
src += 4;
} }
while (src < buf + buf_size) { while (src < buf + buf_size) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment