shithub: libvpx

Download patch

ref: e35c54e9c286ee79c869ac8386e94590d00d5e94
parent: 75eb3afd90943c3ee4e0735289d6d9330e9be3e3
author: Jim Bankoski <[email protected]>
date: Tue Aug 19 05:00:44 EDT 2014

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

Change-Id: Ic143455b0880e639959732e178cd62140a510b79

--- a/y4minput.c
+++ b/y4minput.c
@@ -978,7 +978,9 @@
     _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;
 }