diff options
author | Frank Galligan <fgalligan@google.com> | 2014-09-11 08:39:38 -0700 |
---|---|---|
committer | Frank Galligan <fgalligan@google.com> | 2014-09-15 15:37:36 -0700 |
commit | 175d9dfe0af6912fb9ecf7f94bd581a6b45d57a9 (patch) | |
tree | 78b95906fe0043dc8a751014edc378fd4b635c25 /vpxdec.c | |
parent | d9050af6835f732b78c325613caf842179def059 (diff) | |
download | libvpx-175d9dfe0af6912fb9ecf7f94bd581a6b45d57a9.tar libvpx-175d9dfe0af6912fb9ecf7f94bd581a6b45d57a9.tar.gz libvpx-175d9dfe0af6912fb9ecf7f94bd581a6b45d57a9.tar.bz2 libvpx-175d9dfe0af6912fb9ecf7f94bd581a6b45d57a9.zip |
Remove memset of every external frame buffer.
Libvpx was memseting every external frame buffer before decode. This
was to work around a valgrind issue in our C loop filter. Most of
the time this was not needed and we have noticed some significant
performance loss on some platforms. Now we require the application to
zero out the buffers if it is using external frame buffers.
Change-Id: I7330d00a315e65137ed30edd5f813e8929b76242
Diffstat (limited to 'vpxdec.c')
-rw-r--r-- | vpxdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -384,7 +384,7 @@ int get_vp9_frame_buffer(void *cb_priv, size_t min_size, if (ext_fb_list->ext_fb[i].size < min_size) { free(ext_fb_list->ext_fb[i].data); - ext_fb_list->ext_fb[i].data = (uint8_t *)malloc(min_size); + ext_fb_list->ext_fb[i].data = (uint8_t *)calloc(min_size, sizeof(uint8_t)); if (!ext_fb_list->ext_fb[i].data) return -1; |