# HG changeset patch # User diego # Date 1175981658 0 # Node ID 3a95bd17d35567cd94ddce1926c5c8f770721737 # Parent ec3c56e6185bd4b6e38164e79a00ad468441ed60 CRYO APC demuxer patch by Anssi Hannula, anssi.hannula gmail com diff -r ec3c56e6185b -r 3a95bd17d355 adpcm.c --- 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; }