shithub: libvpx

Download patch

ref: 902773f49c12d755d55cf9c638619aba7be7da9a
parent: 32bcc4ae16230248c23b275ece619946171aa448
parent: 50b38cf1aa753f0c406b249d8e78a0689572d69b
author: Wan-Teh Chang <wtc@google.com>
date: Mon Jan 14 17:03:50 EST 2019

Merge "Reset buffer_alloc_sz after freeing buffer_alloc."

--- a/vpx_scale/generic/yv12config.c
+++ b/vpx_scale/generic/yv12config.c
@@ -228,6 +228,7 @@
       // Allocation to hold larger frame, or first allocation.
       vpx_free(ybf->buffer_alloc);
       ybf->buffer_alloc = NULL;
+      ybf->buffer_alloc_sz = 0;
 
       ybf->buffer_alloc = (uint8_t *)vpx_memalign(32, (size_t)frame_size);
       if (!ybf->buffer_alloc) return -1;