From: Yaowu Xu Date: Wed, 8 Oct 2014 15:38:15 +0000 (-0700) Subject: Revert "Change the y4m buffer allocation size" X-Git-Tag: v1.4.0~657 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0af41697582349310c32292e9c9ff733a412da3;p=platform%2Fupstream%2Flibvpx.git Revert "Change the y4m buffer allocation size" This reverts commit 72ef1949388c4c0d82769ef06c6db0195b124b13. Change-Id: Ic1906bcc6da05d2e6529152b92df809c8e5a2406 --- diff --git a/y4minput.c b/y4minput.c index eb08f0b..34ea96d 100644 --- a/y4minput.c +++ b/y4minput.c @@ -975,9 +975,9 @@ int y4m_input_open(y4m_input *_y4m, FILE *_fin, char *_skip, int _nskip, + 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);