diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-18 16:46:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-18 16:59:05 +0200 |
commit | 5439959ef013670d8974e88acb85bd03055a6229 (patch) | |
tree | 76252a7e18c59bbe1245674a27ae916c29d74655 /libavcodec/huffyuvdec.c | |
parent | 99a8a3de8c65b5a9c252062a24218ea11aa30802 (diff) | |
download | ffmpeg-5439959ef013670d8974e88acb85bd03055a6229.tar.gz |
avcodec/huffyuvdec: do not leave alpha values uninitialized
fixes fate failure under valgrind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/huffyuvdec.c')
-rw-r--r-- | libavcodec/huffyuvdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c index 3120c799f8..b454e7c30a 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); |