]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/adpcm.c
avcodec/adpcm_ima_alp: reset state on flush
[ffmpeg] / libavcodec / adpcm.c
index b0354065502ff94604eb97cccfedeabb8e4a03e6..f154188b5d2c64f13ef94ba528dcdef444e6262d 100644 (file)
@@ -2116,6 +2116,15 @@ 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_IMA_ALP:
+    case AV_CODEC_ID_ADPCM_IMA_SSI:
     case AV_CODEC_ID_ADPCM_ZORK:
         for (int channel = 0; channel < avctx->channels; channel++) {
             c->status[channel].predictor  = 0;