Revert "Change the y4m buffer allocation size"
This reverts commit 72ef194938
.
Change-Id: Ic1906bcc6da05d2e6529152b92df809c8e5a2406
This commit is contained in:
parent
2faff64866
commit
a0af416975
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user