encoder: back-port VUI content fixes from default branch

Take values from param structure, which is where these fields are actually
configured.

--HG--
branch : stable
Merge with stable