Fix the encoder to support profile change

Change-Id: Iefb928ad1174e274409facfb44f80265ff0f7683
2 files changed