1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-03 14:32:16 +02:00

avcodec/adpcm_argo: reset state on flush

Commit 003b5c800fef909fa84dd2fae43d66bd434d3f7e introduced seeking in argo_asf,
but this was missed, leading to non-deterministic output.

Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
Zane van Iperen 2021-03-23 20:58:33 +10:00
parent efb58ec8f9
commit 660c14a9b9
No known key found for this signature in database
GPG Key ID: 68616B2D8AC4DCC5

View File

@ -2116,6 +2116,13 @@ static void adpcm_flush(AVCodecContext *avctx)
c->status[channel].step = 0;
break;
case AV_CODEC_ID_ADPCM_ARGO:
for (int channel = 0; channel < avctx->channels; channel++) {
c->status[channel].sample1 = 0;
c->status[channel].sample2 = 0;
}
break;
case AV_CODEC_ID_ADPCM_ZORK:
for (int channel = 0; channel < avctx->channels; channel++) {
c->status[channel].predictor = 0;