rtmpproto: Check APP_MAX_LENGTH