[FFmpeg-cvslog] avcodec/wmaprodec: unbreak old xma2 decoding

Paul B Mahol git at videolan.org
Fri Sep 3 21:09:58 EEST 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Sep  3 20:08:04 2021 +0200| [584cd16ad0cba2673c51501dc0e2edc5543bafbe] | committer: Paul B Mahol

avcodec/wmaprodec: unbreak old xma2 decoding

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=584cd16ad0cba2673c51501dc0e2edc5543bafbe
---

 libavcodec/wmaprodec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 */



More information about the ffmpeg-cvslog mailing list