diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-03-21 00:04:49 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-21 18:09:26 +0100 |
commit | 98ca4d217d32e86fc19bfd9c26618292d58da0d2 (patch) | |
tree | 71935cae5880ea66dcb3b5fad466cde821bfec8a /libavcodec/adpcm.c | |
parent | 8d393ce3309fe90b01e79a62343a830650321c94 (diff) | |
download | ffmpeg-98ca4d217d32e86fc19bfd9c26618292d58da0d2.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: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r-- | libavcodec/adpcm.c | 2 |
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: |