summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-03-20 22:27:09 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2012-03-27 11:58:15 -0400
commit55abaa58e5ede59d497e1ab89d5fe0950d1c6ecf (patch)
tree6bd4c6e504aa11c19827607b07df9f79a4a2ad3c /libavcodec/adpcm.c
parentf0a343f39953f8112fb1bfe8989ff8479262fcc4 (diff)
downloadffmpeg-55abaa58e5ede59d497e1ab89d5fe0950d1c6ecf.tar.gz
westwood_vqa: fix SND0 chunk handling
Version from vqa header does not dictate which sound chunks may appear in file. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r--libavcodec/adpcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 67601b4872..41d0d98d26 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -128,7 +128,7 @@ static av_cold int adpcm_decode_init(AVCodecContext * avctx)
}
break;
case CODEC_ID_ADPCM_IMA_WS:
- if (avctx->extradata && avctx->extradata_size >= 42)
+ if (avctx->extradata && avctx->extradata_size >= 2)
c->vqa_version = AV_RL16(avctx->extradata);
break;
default: