changeset 4809:3a95bd17d355 libavcodec

CRYO APC demuxer patch by Anssi Hannula, anssi.hannula gmail com
author diego
date Sat, 07 Apr 2007 21:34:18 +0000
parents ec3c56e6185b
children 0066256e99da
files adpcm.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/adpcm.c	Sat Apr 07 21:30:19 2007 +0000
+++ b/adpcm.c	Sat Apr 07 21:34:18 2007 +0000
@@ -612,6 +612,12 @@
     case CODEC_ID_ADPCM_CT:
         c->status[0].step = c->status[1].step = 511;
         break;
+    case CODEC_ID_ADPCM_IMA_WS:
+        if (avctx->extradata && avctx->extradata_size == 2 * 4) {
+            c->status[0].predictor = AV_RL32(avctx->extradata);
+            c->status[1].predictor = AV_RL32(avctx->extradata + 4);
+        }
+        break;
     default:
         break;
     }