diff options
author | Anssi Hannula <anssi.hannula@iki.fi> | 2007-04-07 21:34:18 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-04-07 21:34:18 +0000 |
commit | 8e952e4d2372c743b35fae4060f13f2e128cad96 (patch) | |
tree | 54d2f00569e10318e1a0a972adef3a13de38a9ae /libavcodec/adpcm.c | |
parent | 204424a4c747d1257a4180d90f5249a8ef9c71e6 (diff) | |
download | ffmpeg-8e952e4d2372c743b35fae4060f13f2e128cad96.tar.gz |
CRYO APC demuxer
patch by Anssi Hannula, anssi.hannula gmail com
Originally committed as revision 8656 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r-- | libavcodec/adpcm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index d24acbc145..eafb0363db 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -612,6 +612,12 @@ static int adpcm_decode_init(AVCodecContext * avctx) 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; } |