ref: 04db245a2f98b6c1a53bd5c37a52e547b70da688
parent: 1b8c57e915d3041974c66d3649da1e7cf8cb7aff
parent: 72ef1949388c4c0d82769ef06c6db0195b124b13
author: Yaowu Xu <[email protected]>
date: Mon Oct 6 05:40:15 EDT 2014
Merge "Change the y4m buffer allocation size"
--- 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_sz);
+ _y4m->dst_buf = (unsigned char *)malloc(_y4m->dst_buf_read_sz);
else
- _y4m->dst_buf = (unsigned char *)malloc(2 * _y4m->dst_buf_sz);
+ _y4m->dst_buf = (unsigned char *)malloc(2 * _y4m->dst_buf_read_sz);
if (_y4m->aux_buf_sz > 0)
_y4m->aux_buf = (unsigned char *)malloc(_y4m->aux_buf_sz);