y4minput.c : removed malloc of 0 bytes to resolve warning

Change-Id: Ic143455b0880e639959732e178cd62140a510b79
This commit is contained in:
Jim Bankoski 2014-08-19 09:00:44 -07:00 committed by Gerrit Code Review
parent 75eb3afd90
commit e35c54e9c2

View File

@ -978,7 +978,9 @@ int y4m_input_open(y4m_input *_y4m, FILE *_fin, char *_skip, int _nskip,
_y4m->dst_buf = (unsigned char *)malloc(_y4m->dst_buf_sz);
else
_y4m->dst_buf = (unsigned char *)malloc(2 * _y4m->dst_buf_sz);
_y4m->aux_buf = (unsigned char *)malloc(_y4m->aux_buf_sz);
if (_y4m->aux_buf_sz > 0)
_y4m->aux_buf = (unsigned char *)malloc(_y4m->aux_buf_sz);
return 0;
}