git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99a8a3d
)
avcodec/huffyuvdec: do not leave alpha values uninitialized
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 18 Jun 2014 14:46:56 +0000
(16:46 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 18 Jun 2014 14:59:05 +0000
(16:59 +0200)
fixes fate failure under valgrind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/huffyuvdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/huffyuvdec.c
b/libavcodec/huffyuvdec.c
index
3120c79
..
b454e7c
100644
(file)
--- 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);