[FFmpeg-devel] [PATCH] avcodec/mss2: initialise wmv9_mask variable

Peter Ross pross at xvid.org
Thu Oct 27 22:45:33 EEST 2022


initialised to -1 which indicates wmv9 codec not present
---
 libavcodec/mss2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mss2.c b/libavcodec/mss2.c
index 69494d8c44..14746505f4 100644
--- a/libavcodec/mss2.c
+++ b/libavcodec/mss2.c
@@ -519,7 +519,7 @@ static int mss2_decode_frame(AVCodecContext *avctx, AVFrame *frame,
 
     struct Rectangle wmv9rects[MAX_WMV9_RECTANGLES], *r;
     struct Rectangle2 draw;
-    int used_rects = 0, i, implicit_rect = 0, av_uninit(wmv9_mask);
+    int used_rects = 0, i, implicit_rect = 0, wmv9_mask = -1;
 
     if ((ret = init_get_bits8(&gb, buf, buf_size)) < 0)
         return ret;
-- 
2.35.1

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20221028/15179df9/attachment.sig>


More information about the ffmpeg-devel mailing list