Bug fix for ticket #666. Fix the wrong lambda and QP clipping when rate control is applied by scaling all the clip bounds with pow(2,bitdepth_luma_scale).