Automatically upgrade profile to match input chroma subsampling. This is a follow-up to 1195a396f6c53a5bd35559eed957c2aac855f7e. Change-Id: I4db554e5d88290d55258062e29a1652707d91037