fix codec selection