initialize bit buffer structure to avoid warning error
authorJim Bankoski <jimbankoski@google.com>
Mon, 30 Jun 2014 15:05:15 +0000 (08:05 -0700)
committerJim Bankoski <jimbankoski@google.com>
Mon, 30 Jun 2014 15:05:15 +0000 (08:05 -0700)
Change-Id: I38bb2801ad3f059d5e2eb6513eec92397c67abcd

vp9/decoder/vp9_decodeframe.c

index 1effef3..404a345 100644 (file)
@@ -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));