From eaf4bf6df2cf26c31bf7f787edd69812a681ab2e Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sun, 22 Jan 2012 13:46:59 -0800 Subject: [PATCH] CrystalHD: Initialise variables to silence valgrind. Signed-off-by: Michael Niedermayer --- libavcodec/crystalhd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c index 833b8d97fa..f184c06d9e 100644 --- a/libavcodec/crystalhd.c +++ b/libavcodec/crystalhd.c @@ -512,7 +512,7 @@ static inline CopyRet copy_frame(AVCodecContext *avctx, void *data, int *data_size) { BC_STATUS ret; - BC_DTS_STATUS decoder_status; + BC_DTS_STATUS decoder_status = { 0, }; uint8_t trust_interlaced; uint8_t interlaced; @@ -786,7 +786,7 @@ static inline CopyRet receive_frame(AVCodecContext *avctx, static int decode(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { BC_STATUS ret; - BC_DTS_STATUS decoder_status; + BC_DTS_STATUS decoder_status = { 0, }; CopyRet rec_ret; CHDContext *priv = avctx->priv_data; HANDLE dev = priv->dev;