diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-03-20 22:27:09 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-03-27 11:58:15 -0400 |
commit | 55abaa58e5ede59d497e1ab89d5fe0950d1c6ecf (patch) | |
tree | 6bd4c6e504aa11c19827607b07df9f79a4a2ad3c /libavcodec/adpcm.c | |
parent | f0a343f39953f8112fb1bfe8989ff8479262fcc4 (diff) | |
download | ffmpeg-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.c | 2 |
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: |