From 5439959ef013670d8974e88acb85bd03055a6229 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Wed, 18 Jun 2014 16:46:56 +0200
Subject: [PATCH] avcodec/huffyuvdec: do not leave alpha values uninitialized

fixes fate failure under valgrind

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
---
 libavcodec/huffyuvdec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c
index 3120c799f8e..b454e7c30a4 100644
--- a/libavcodec/huffyuvdec.c
+++ b/libavcodec/huffyuvdec.c
@@ -770,7 +770,8 @@ static av_always_inline void decode_bgr_1(HYuvContext *s, int count,
                 index = SHOW_UBITS(re, &s->gb, VLC_BITS);
                 VLC_INTERN(s->temp[0][4 * i + A], s->vlc[2].table,
                            &s->gb, re, VLC_BITS, 3);
-            }
+            } else
+                s->temp[0][4 * i + A] = 0;
         }
     }
     CLOSE_READER(re, &s->gb);
-- 
GitLab