ref: dc0f0f1cf2eacb16787ff168f1bd750c93951454
parent: e21c1eab9d290e55bafd9efbb4b8a3b7dd22e2b3
parent: b10541411852e62c14f4c4bc140ac08c95f3f135
author: James Zern <[email protected]>
date: Fri Jun 12 18:13:28 EDT 2015
Merge changes I342075eb,I222eaa4e * changes: vp9_decodeframe: simplify init_read_bit_buffer signature vp9_decode_frame: remove explicit read_bit_buffer init
--- a/vp9/decoder/vp9_decodeframe.c
+++ b/vp9/decoder/vp9_decodeframe.c
@@ -1926,12 +1926,12 @@
}
#endif // NDEBUG
-static struct vp9_read_bit_buffer* init_read_bit_buffer(
+static struct vp9_read_bit_buffer *init_read_bit_buffer(
VP9Decoder *pbi,
struct vp9_read_bit_buffer *rb,
const uint8_t *data,
const uint8_t *data_end,
- uint8_t *clear_data /* buffer size MAX_VP9_HEADER_SIZE */) {
+ uint8_t clear_data[MAX_VP9_HEADER_SIZE]) {
rb->bit_offset = 0;
rb->error_handler = error_handler;
rb->error_handler_data = &pbi->common;
@@ -1974,7 +1974,7 @@
const uint8_t **p_data_end) {
VP9_COMMON *const cm = &pbi->common;
MACROBLOCKD *const xd = &pbi->mb;
- struct vp9_read_bit_buffer rb = { NULL, NULL, 0, NULL, 0};
+ struct vp9_read_bit_buffer rb;
int context_updated = 0;
uint8_t clear_data[MAX_VP9_HEADER_SIZE];
const size_t first_partition_size = read_uncompressed_header(pbi,