7313602decf30364e4823f6a9c34045432f0bd9f |
|
23-Jun-2015 |
Martin Storsjo <martin@martin.st> |
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
/external/libavc/encoder/irc_cbr_buffer_control.c
|