Commit eec78cc9 authored by Yaowu Xu's avatar Yaowu Xu

Prevent call to non-existing error_handler

BUG=aomedia:121

Change-Id: Iec2e98c9f80ef3a01476234e637c135ff0513efd
parent 6e3557c9
......@@ -24,7 +24,7 @@ int aom_rb_read_bit(struct aom_read_bit_buffer *rb) {
rb->bit_offset = off + 1;
return bit;
} else {
rb->error_handler(rb->error_handler_data);
if (rb->error_handler) rb->error_handler(rb->error_handler_data);
return 0;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment