From 7a8829f61a38dcb7a2771703df8d6aa412718676 Mon Sep 17 00:00:00 2001 From: Jim Bankoski Date: Mon, 30 Jun 2014 08:05:15 -0700 Subject: [PATCH] initialize bit buffer structure to avoid warning error Change-Id: I38bb2801ad3f059d5e2eb6513eec92397c67abcd --- vp9/decoder/vp9_decodeframe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vp9/decoder/vp9_decodeframe.c b/vp9/decoder/vp9_decodeframe.c index 1effef3..404a345 100644 --- a/vp9/decoder/vp9_decodeframe.c +++ b/vp9/decoder/vp9_decodeframe.c @@ -1334,7 +1334,8 @@ void vp9_decode_frame(VP9Decoder *pbi, const uint8_t **p_data_end) { VP9_COMMON *const cm = &pbi->common; MACROBLOCKD *const xd = &pbi->mb; - struct vp9_read_bit_buffer rb = { 0 }; + struct vp9_read_bit_buffer rb = { NULL, NULL, 0, NULL, 0}; + uint8_t clear_data[MAX_VP9_HEADER_SIZE]; const size_t first_partition_size = read_uncompressed_header(pbi, init_read_bit_buffer(pbi, &rb, data, data_end, clear_data)); -- 2.7.4