commit | c22addc6ee9c96f2996001362dbe39dd5e14038d | [log] [tgz] |
---|---|---|
author | Martin Storsjo <martin@martin.st> | Tue Jun 23 14:51:06 2015 +0300 |
committer | Marco Nelissen <marcone@google.com> | Thu Jun 25 08:25:57 2015 -0700 |
tree | bf7a85e2985bb0c514e733538e96ffdc67f50437 | |
parent | 88966cf07d2095aec959c5ac14b30237eeaa5727 [diff] |
Don't use static structs for rc init Most of them was benign and didn't risk any data race; they were used for write-only memory during init. The array as_itt_memtab in ih264e_get_rate_control_mem_tab could however cause a real data race, if multiple threads try to initialize an encoder at the same time, since it used as temporary storage when mapping between different structs. Change-Id: I3ca29f0e3be2fad154becc3ee29867e591975a74