Reset buffer_alloc_sz after freeing buffer_alloc.
authorWan-Teh Chang <wtc@google.com>
Mon, 14 Jan 2019 19:54:59 +0000 (11:54 -0800)
committerWan-Teh Chang <wtc@google.com>
Mon, 14 Jan 2019 19:54:59 +0000 (11:54 -0800)
commit50b38cf1aa753f0c406b249d8e78a0689572d69b
tree4bfc975e00cee3edcf0f78df55635c772bbb8115
parent6b02a123bc0025c85d5ba110848f65f1e9fb2442
Reset buffer_alloc_sz after freeing buffer_alloc.

ybf->buffer_alloc and ybf->buffer_alloc_sz should ideally be kept in
sync. If ybf->buffer_alloc is reset to NULL after being freed, then
ybf->buffer_alloc_sz should be reset to 0.

Change-Id: I7e7566b563ddf145d0e46050c5b6bd141084f8b3
vpx_scale/generic/yv12config.c