rtmpproto: reorder some expressions to fix compilation with clang without optimizations