commit | 7313602decf30364e4823f6a9c34045432f0bd9f | [log] [tgz] |
---|---|---|
author | Martin Storsjo <martin@martin.st> | Tue Jun 23 14:51:06 2015 +0300 |
committer | Martin Storsjo <martin@martin.st> | Tue Jun 23 15:00:45 2015 +0300 |
tree | 0ef1cf2fc4f7085f9d22442e73e5c1acf5dbf52d | |
parent | 5cdb888fea0dbc2027400f5f2c2459e6b26eec0c [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