shithub: libvpx

Download patch

ref: a0af41697582349310c32292e9c9ff733a412da3
parent: 2faff64866111fa7257a1188b863f56bb206d09e
author: Yaowu Xu <[email protected]>
date: Wed Oct 8 04:38:15 EDT 2014

Revert "Change the y4m buffer allocation size"

This reverts commit 72ef1949388c4c0d82769ef06c6db0195b124b13.

Change-Id: Ic1906bcc6da05d2e6529152b92df809c8e5a2406

--- a/y4minput.c
+++ b/y4minput.c
@@ -975,9 +975,9 @@
                      + 2 * ((_y4m->pic_w + _y4m->dst_c_dec_h - 1) / _y4m->dst_c_dec_h) *
                      ((_y4m->pic_h + _y4m->dst_c_dec_v - 1) / _y4m->dst_c_dec_v);
   if (_y4m->bit_depth == 8)
-    _y4m->dst_buf = (unsigned char *)malloc(_y4m->dst_buf_read_sz);
+    _y4m->dst_buf = (unsigned char *)malloc(_y4m->dst_buf_sz);
   else
-    _y4m->dst_buf = (unsigned char *)malloc(2 * _y4m->dst_buf_read_sz);
+    _y4m->dst_buf = (unsigned char *)malloc(2 * _y4m->dst_buf_sz);
 
   if (_y4m->aux_buf_sz > 0)
     _y4m->aux_buf = (unsigned char *)malloc(_y4m->aux_buf_sz);