commit | 6c9c12fd53a8431097ad1fed5d81b9b2cdf9de5c | [log] [tgz] |
---|---|---|
author | Chih-Yu Huang <akahuang@google.com> | Tue Apr 14 16:48:55 2020 +0900 |
committer | Chih-Yu Huang <akahuang@google.com> | Wed Apr 15 12:14:31 2020 +0900 |
tree | 0062e23212f47df0841ac5242fafccfd1187aec3 | |
parent | 995e0419fb6c8828a3ab3e159cac64b9bcd7508e [diff] |
accel: Avoid aggregate initialization for C struct. When a union is initialized by aggregate initialization, only its first non-static data member is initialized. So if a C struct contains union data members, other data members are not initialized. This CL replaces aggregate initialization of all v4l2 related struct with memset(), to ensure the struct is initialized correctly. Bug: 153935975 Test: mmm external/v4l2_codec2 Change-Id: I11550e1ebcce3a69e5f0ccd814f6413f7ce8aabf