修改读取codec参数的方式

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>