summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-08-26 08:10:24 -0600
committerBrian Paul <brianp@vmware.com>2011-08-26 08:11:50 -0600
commitb59715b13afa6885fe7950677df3be2fd89dee47 (patch)
tree684bdfcbc573c17df46e766e406e2babbf5d5355
parentcdb7396390b0afffc0d33c9aba2898012802e6d0 (diff)
downloadexternal_mesa3d-b59715b13afa6885fe7950677df3be2fd89dee47.zip
external_mesa3d-b59715b13afa6885fe7950677df3be2fd89dee47.tar.gz
external_mesa3d-b59715b13afa6885fe7950677df3be2fd89dee47.tar.bz2
g3dvl: fix compilation failure on MSVC
I assume the intention of "mb = {}" was to zero-initialize it.
-rw-r--r--src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
index ef00e2d..db05b15 100644
--- a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
+++ b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
@@ -789,11 +789,12 @@ entry:
static INLINE bool
decode_slice(struct vl_mpg12_bs *bs)
{
- struct pipe_mpeg12_macroblock mb = {};
+ struct pipe_mpeg12_macroblock mb;
short dct_blocks[64*6];
unsigned dct_scale;
signed x = -1;
+ memset(&mb, 0, sizeof(mb));
mb.base.codec = PIPE_VIDEO_CODEC_MPEG12;
mb.y = vl_vlc_get_uimsbf(&bs->vlc, 8) - 1;
mb.blocks = dct_blocks;