mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Only 4-bit ADPCM IMA WAV files are supported.
Originally committed as revision 24493 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f7bd4a8ebd
commit
b9542223a3
@ -721,6 +721,12 @@ static av_cold int adpcm_decode_init(AVCodecContext * avctx)
|
|||||||
case CODEC_ID_ADPCM_CT:
|
case CODEC_ID_ADPCM_CT:
|
||||||
c->status[0].step = c->status[1].step = 511;
|
c->status[0].step = c->status[1].step = 511;
|
||||||
break;
|
break;
|
||||||
|
case CODEC_ID_ADPCM_IMA_WAV:
|
||||||
|
if (avctx->bits_per_coded_sample != 4) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR, "Only 4-bit ADPCM IMA WAV files are supported\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case CODEC_ID_ADPCM_IMA_WS:
|
case CODEC_ID_ADPCM_IMA_WS:
|
||||||
if (avctx->extradata && avctx->extradata_size == 2 * 4) {
|
if (avctx->extradata && avctx->extradata_size == 2 * 4) {
|
||||||
c->status[0].predictor = AV_RL32(avctx->extradata);
|
c->status[0].predictor = AV_RL32(avctx->extradata);
|
||||||
|
Loading…
Reference in New Issue
Block a user