summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2017-03-03 15:23:32 -0800
committerJames Zern <jzern@google.com>2017-03-03 15:23:32 -0800
commit9c3c1f3725762715c402b63fc852f62e715b491e (patch)
treee28d37b00d1fed1f0f5241e10b052d9ae979e27e /vp8
parent9e7140b451b44c7daa63d39b978d52b2ddd081ea (diff)
downloadlibvpx-9c3c1f3725762715c402b63fc852f62e715b491e.tar
libvpx-9c3c1f3725762715c402b63fc852f62e715b491e.tar.gz
libvpx-9c3c1f3725762715c402b63fc852f62e715b491e.tar.bz2
libvpx-9c3c1f3725762715c402b63fc852f62e715b491e.zip
vp8_create_decoder_instances: correct pbi[] memset
clear the entire array on error. the size used previously was equal to the number of elements. BUG=webm:1364 Change-Id: I2f2e16ed6e867f41d4774a5a8ac9cedaee11ce46
Diffstat (limited to 'vp8')
-rw-r--r--vp8/decoder/onyxd_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/decoder/onyxd_if.c b/vp8/decoder/onyxd_if.c
index 552c49437..789c2eeff 100644
--- a/vp8/decoder/onyxd_if.c
+++ b/vp8/decoder/onyxd_if.c
@@ -446,7 +446,7 @@ int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf) {
#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;
}