[FFmpeg-cvslog] avcodec/huffyuvdec: do not leave alpha values uninitialized
Michael Niedermayer
git at videolan.org
Wed Jun 18 17:04:39 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jun 18 16:46:56 2014 +0200| [5439959ef013670d8974e88acb85bd03055a6229] | committer: Michael Niedermayer
avcodec/huffyuvdec: do not leave alpha values uninitialized
fixes fate failure under valgrind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5439959ef013670d8974e88acb85bd03055a6229
---
libavcodec/huffyuvdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c
index 3120c79..b454e7c 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);
More information about the ffmpeg-cvslog
mailing list