projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdb7396
)
g3dvl: fix compilation failure on MSVC
author
Brian Paul
<brianp@vmware.com>
Fri, 26 Aug 2011 14:10:24 +0000
(08:10 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 26 Aug 2011 14:11:50 +0000
(08:11 -0600)
I assume the intention of "mb = {}" was to zero-initialize it.
src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
index ef00e2d9466c81c4853bffddfda7988608629354..db05b151f95104a2fa67eb7537d3531873239f00 100644
(file)
--- 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;