aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-09-03 20:08:04 +0200
committerPaul B Mahol <onemda@gmail.com>2021-09-03 20:09:28 +0200
commit584cd16ad0cba2673c51501dc0e2edc5543bafbe (patch)
tree90c7f8ae63c80d2611ec8b31b29e8e95282d3714 /libavcodec
parente204846ec16c1ab34c7f3a681734cf5190433018 (diff)
downloadffmpeg-584cd16ad0cba2673c51501dc0e2edc5543bafbe.tar.gz
avcodec/wmaprodec: unbreak old xma2 decoding
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/wmaprodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index 21c83b43bc..a4b48b13a8 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -1955,7 +1955,7 @@ static av_cold int xma_decode_init(AVCodecContext *avctx)
return AVERROR_INVALIDDATA;
/* get stream config */
- if (avctx->codec_id == AV_CODEC_ID_XMA2 && avctx->extradata_size >= 34) { /* XMA2WAVEFORMATEX */
+ if (avctx->codec_id == AV_CODEC_ID_XMA2 && avctx->extradata_size == 34) { /* XMA2WAVEFORMATEX */
s->num_streams = AV_RL16(avctx->extradata);
avctx->channel_layout = AV_RL32(avctx->extradata + 2);
} else if (avctx->codec_id == AV_CODEC_ID_XMA2 && avctx->extradata_size >= 2) { /* XMA2WAVEFORMAT */