summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-03-21 00:04:49 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-03-21 18:09:26 +0100
commit98ca4d217d32e86fc19bfd9c26618292d58da0d2 (patch)
tree71935cae5880ea66dcb3b5fad466cde821bfec8a /libavcodec/adpcm.c
parent8d393ce3309fe90b01e79a62343a830650321c94 (diff)
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: Michael Niedermayer <michaelni@gmx.at>
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 3e0c76a5ae..c1f6ee0a5b 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: