(Hevc): Revert some code which introduced bugs. Disabling debug mode.