avcodec/adpcm_ima_ssi: reset state on flush

Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
pull/362/head
Zane van Iperen 4 years ago
parent 660c14a9b9
commit ff7bbd6d88
No known key found for this signature in database
GPG Key ID: 68616B2D8AC4DCC5
  1. 1
      libavcodec/adpcm.c

@ -2123,6 +2123,7 @@ static void adpcm_flush(AVCodecContext *avctx)
} }
break; break;
case AV_CODEC_ID_ADPCM_IMA_SSI:
case AV_CODEC_ID_ADPCM_ZORK: case AV_CODEC_ID_ADPCM_ZORK:
for (int channel = 0; channel < avctx->channels; channel++) { for (int channel = 0; channel < avctx->channels; channel++) {
c->status[channel].predictor = 0; c->status[channel].predictor = 0;

Loading…
Cancel
Save