Clean code and updated codec setting.
Signed-off-by: Zhou Chang <achang.zhou@gmail.com>