[SCM] libav/experimental: Only 4-bit ADPCM IMA WAV files are supported.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:12:38 UTC 2013
The following commit has been merged in the experimental branch:
commit b9542223a3f338e98e1d795273c2aaae775ae898
Author: Carl Eugen Hoyos <cehoyos at rainbow.studorg.tuwien.ac.at>
Date: Sun Jul 25 14:33:16 2010 +0000
Only 4-bit ADPCM IMA WAV files are supported.
Originally committed as revision 24493 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index eb044ba..dbb57e5 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -721,6 +721,12 @@ static av_cold 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_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:
if (avctx->extradata && avctx->extradata_size == 2 * 4) {
c->status[0].predictor = AV_RL32(avctx->extradata);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list