ref: 47cf7c25a283db3f730779439f243933d46a0735
parent: 15dac923b9526f4e5886368e41d25fb4625e0372
parent: 9c3c1f3725762715c402b63fc852f62e715b491e
author: James Zern <jzern@google.com>
date: Fri Mar 3 19:47:17 EST 2017
Merge "vp8_create_decoder_instances: correct pbi[] memset"
--- a/vp8/decoder/onyxd_if.c
+++ b/vp8/decoder/onyxd_if.c
@@ -446,7 +446,7 @@
#if CONFIG_MULTITHREAD
if (setjmp(fb->pbi[0]->common.error.jmp)) {
vp8_remove_decoder_instances(fb);
- memset(fb->pbi, 0, sizeof(fb->pbi) / sizeof(fb->pbi[0]));
+ memset(fb->pbi, 0, sizeof(fb->pbi));
vpx_clear_system_state();
return VPX_CODEC_ERROR;
}