input: fix race condition

--HG--
extra : rebase_source : c509c8f80b7ebe1e17b64bdf797a3982d58611e2
entropy: nit

--HG--
extra : rebase_source : 6cfe77ad7a9831c5697087daa90431e04dffa217
cli: use consistent bool naming convention

--HG--
extra : rebase_source : 78e9a9ca297a74bbd377a58d2a7dc07c6b1081ef
cli: add --ipratio and --pbratio
rest: document ipratio and pbratio parameters
frameencoder: fix for error in VPS when AccessUnitDelimeter is turned on

The bitstream needs to be reset before start encode VPS, since if AU_Delimeter
is turned on, there is one byte of data left in the bitstream that will be
written wrongly into the VPS.
TComDataCU: remove warnings for shadowed declaration
rc: accumulate mv bits, coeff bits per frame
encoder: RDOQ is only applicable at rd levels 4, 5, and 6