Unify h264 codec interface